fixed location sorting
last commit correction