Sort snapshot dropdown latest first (descending)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -228,7 +228,7 @@ sub handle_step2 {
|
|||||||
print qq{ <label class="w-44 font-medium text-sm" for="timestamp">Snapshot</label>\n};
|
print qq{ <label class="w-44 font-medium text-sm" for="timestamp">Snapshot</label>\n};
|
||||||
if (@snapshots) {
|
if (@snapshots) {
|
||||||
print qq{ <select class="select select-bordered select-sm w-full max-w-xs" id="timestamp" name="timestamp" required onchange="gnizaSnapshotChange()">\n};
|
print qq{ <select class="select select-bordered select-sm w-full max-w-xs" id="timestamp" name="timestamp" required onchange="gnizaSnapshotChange()">\n};
|
||||||
for my $snap (reverse @snapshots) {
|
for my $snap (sort { $b cmp $a } @snapshots) {
|
||||||
my $esc = GnizaWHM::UI::esc($snap);
|
my $esc = GnizaWHM::UI::esc($snap);
|
||||||
print qq{ <option value="$esc">$esc</option>\n};
|
print qq{ <option value="$esc">$esc</option>\n};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user