From: Andrew DeFaria Date: Sun, 18 Jul 2021 03:44:16 +0000 (-0700) Subject: Fixed Resequence list to sort hit_count desc X-Git-Url: https://defaria.com/gitweb/?a=commitdiff_plain;h=dd6358fafad300501a15d53b302c07c76aca8847;p=clearscm.git Fixed Resequence list to sort hit_count desc --- diff --git a/maps/lib/MAPS.pm b/maps/lib/MAPS.pm index 705196e..8a764cf 100644 --- a/maps/lib/MAPS.pm +++ b/maps/lib/MAPS.pm @@ -1013,7 +1013,7 @@ sub ResequenceList(%) { $db->lock('write', $table); # Get all records for $userid and $type - my $listrecs = $db->get($table, $condition); + my $listrecs = $db->get($table, $condition,'*', 'order by hit_count desc'); # Delete all of the list entries for this $userid and $type my ($count, $msg) = $db->delete($table, $condition);