Fork me on GitHub

Gmap - Special Markers List - Change order  Bottom

  • I have a sidebar list which you can see by visiting http://www.somersetr…dex.php?module=gmap. Currently the list is orderd by ID which is automatically created when the marker is added. I would like to order the marker list alphabetically - any suggestions on how this can be done ?

    --
    David
  • Best would probably be to re-order within a copy of the displaying template. Quick hack might be to change pnuserapi.php function gmap_userapi_getall()

    Code

    $orderby = 'ORDER BY ' . $col['mid'];
    and / or

    Code

    $orderby = 'ORDER BY ' . $col['uid'];
    to

    Code

    $orderby = 'ORDER BY ' . $col['title'];
  • dits thanks very much. Your first suggestion worked a treat. Much appreciated.

    --
    David

This list is based on users active over the last 60 minutes.