I'm having two fields, distance and id.
The distance value calculated from current position(GPS). The id value is either 1 or 0.
I want to sort based on distance and then the id. i.e. The value with lowest distance from current position and id = 1 should come first and goes on, then lowest distance and id = 0 should follow on.
Thank you all for the answers, sorting works now.