Fix Sorting Order For Parking Lots Stored In Static Realtime
authorMichael L. Young <elgueromexicano@gmail.com>
Tue, 12 Mar 2013 21:19:39 +0000 (21:19 +0000)
committerMichael L. Young <elgueromexicano@gmail.com>
Tue, 12 Mar 2013 21:19:39 +0000 (21:19 +0000)
commitba7ee9bfc97aa11f4c72e5f64891f51412553570
tree679261a2c14f4128a5dae8058d1293c7e0f53076
parent6a57a36d288c55cdc2b793a5386bc28ca6dbe8f1
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
........

Merged revisions 382943 from http://svn.asterisk.org/svn/asterisk/branches/11

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