I created an object, it looks something like this.
aOffice.branchname aOffice.lat aOffice.lng aOffice.distance
This is then added to the mutable array (nearbranch). later I determine the distance of each object to the current gps position and add it to the object and return it back to the array. (aOffice.distance)
Now I need to sort this array based on the value of aOffice.distance, but I donβt know how to do it
can someone help me please
thanks
source share