Added sort by given location test