Title: [Plugin: SimpleMap] Can locations be sorted?
Last modified: August 19, 2016

---

# [Plugin: SimpleMap] Can locations be sorted?

 *  Resolved [Dan Griffiths](https://wordpress.org/support/users/ghost1227/)
 * (@ghost1227)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-simplemap-can-locations-be-sorted/)
 * I would like to sort the locations alphabetically by city. Does anyone know a
   way of doing this easily? For that matter, does anyone know how do do this in
   any way?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Glenn Ansley](https://wordpress.org/support/users/blepoxp/)
 * (@blepoxp)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-simplemap-can-locations-be-sorted/#post-1999607)
 * No, Not at this point, sorry. I have on the list of future features though.
 *  [jstrickler@epsne.org](https://wordpress.org/support/users/jstricklerepsneorg/)
 * (@jstricklerepsneorg)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-simplemap-can-locations-be-sorted/#post-1999679)
 * I was just looking for the same solution and have found a very dirty way to sort.
 * This plugin adds a record in the posts table for every location you add. Do a
   search for post_type = sm-location
 * Notice it is not using the post_excerpt field. I populated that field with numbers
   the way I wanted my locations to sort (01, 02, 03, etc).
 * Then in the xml-search.php page…
    Find this Code: ORDER BY $distance_order posts.
   post_name ASC
 * And replace it with this:
    ORDER BY posts.post_excerpt ASC
 *  [andrea.vidotto](https://wordpress.org/support/users/andreavidotto/)
 * (@andreavidotto)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-simplemap-can-locations-be-sorted/#post-1999690)
 * ///Order by Public date
 * ORDER BY
    posts.post_date DESC
 * ORDER BY
    posts.post_date ASC
 * ///Order by Map name
 * ORDER BY
    posts.post_name DESC
 * ORDER BY
    posts.post_name ASC

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: SimpleMap] Can locations be sorted?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simplemap_cca5a5.svg)
 * [SimpleMap Store Locator](https://wordpress.org/plugins/simplemap/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simplemap/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simplemap/)
 * [Active Topics](https://wordpress.org/support/plugin/simplemap/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simplemap/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simplemap/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [andrea.vidotto](https://wordpress.org/support/users/andreavidotto/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-simplemap-can-locations-be-sorted/#post-1999690)
 * Status: resolved