Since entity_id is a character field, this function parsed the number and arranges the data in increasing order by the location's number.

arrange_by_location(data)

Arguments

data

data containing a column for "location".

Value

an arranged tibble.