add sorting function for Places