]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix Sorting Order For Parking Lots Stored In Static Realtime
authorMichael L. Young <elgueromexicano@gmail.com>
Tue, 12 Mar 2013 21:17:17 +0000 (21:17 +0000)
committerMichael L. Young <elgueromexicano@gmail.com>
Tue, 12 Mar 2013 21:17:17 +0000 (21:17 +0000)
commitd4e02135a3d0479f3acf6ce66b535466e6340eb1
tree21b57d520574a6c2040d609148d0a1a22796f812
parent4a72692442c8fa3ed8bfc5a9100d5c14ee7885df
Fix Sorting Order For Parking Lots Stored In Static Realtime

When retrieving the parking lots from a MySQL database table, the current order
is "filename, cat_metric desc, var_metric asc, category".  If there are multiple
parking lots with the same cat_metric but different categories, everything is
being sorted on cat_metric first resulting in errors when loading the parking
lots.

This patch fixes the problem by sorting on the category field first, then the
cat_metric field.

(closes issue ASTERISK-21035)
Reported by: Alex Epshteyn
Patches:
  asterisk-21035-orderby.diff Michael L. Young (license 5026)
........

Merged revisions 382942 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@382943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
addons/res_config_mysql.c