Sorting and map view imlemented