Fix broken geo sort