From 8a18b21ea40a260a1105a207701579a58544d445 Mon Sep 17 00:00:00 2001 From: Darin McBride Date: Thu, 1 Jan 2015 22:33:15 -0700 Subject: [PATCH] Order incoming ships list at the db so that everything in page 1 comes before everything in page 2. --- lib/Lacuna/RPC/Building/SpacePort.pm | 2 +- var/www/public/changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Lacuna/RPC/Building/SpacePort.pm b/lib/Lacuna/RPC/Building/SpacePort.pm index 1a08f1f8..647f1361 100644 --- a/lib/Lacuna/RPC/Building/SpacePort.pm +++ b/lib/Lacuna/RPC/Building/SpacePort.pm @@ -984,7 +984,7 @@ sub view_foreign_ships { $page_number ||= 1; my @fleet; my $now = time; - my $ships = $building->foreign_ships->search({}, {rows=>25, page=>$page_number, join => 'body' }); + my $ships = $building->foreign_ships->search({}, {rows=>25, page=>$page_number, join => 'body', order_by => 'date_available'}); my $see_ship_type = ($building->effective_level * 350) * ( $building->effective_efficiency / 100 ); my $see_ship_path = ($building->effective_level * 450) * ( $building->effective_efficiency / 100 ); my @my_planets = $empire->planets->get_column('id')->all; diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 1aa64e4b..0749d2e1 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -10,6 +10,7 @@ - Add: Allow login with "#". - Mod: "#" no longer permitted as leading character in empire names. - Mod: Propaganda doesn't count as often for missions. + - Mod: incoming ships list ordered correctly. 3.0908: - Mod: trash_messages_where now defaults to not returning deleted message IDs. -- 2.51.2