From dd6358fafad300501a15d53b302c07c76aca8847 Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Sat, 17 Jul 2021 20:44:16 -0700 Subject: [PATCH] Fixed Resequence list to sort hit_count desc --- maps/lib/MAPS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.17.1