Added GPS sorting (not working in emu) and custom adapter