city selector sorting, 500 error