sort location by occurence