Sorting radiobutton

Finished implementing the sorting feature. Will implement sorting by distance in the future since the algorithm for calculating distance by coordinates needs to be written.