From 81cd707e3249fc50de72e5ab38006b087577ee8f Mon Sep 17 00:00:00 2001 From: Darin McBride Date: Fri, 25 Jul 2014 07:53:50 -0600 Subject: [PATCH] Sort the plan list by level/extra_build_level numerically, should make it easier for humans to find the level they want. --- lib/Lacuna/DB/Result/Map/Body/Planet.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Lacuna/DB/Result/Map/Body/Planet.pm b/lib/Lacuna/DB/Result/Map/Body/Planet.pm index b7a96344..14ce659a 100644 --- a/lib/Lacuna/DB/Result/Map/Body/Planet.pm +++ b/lib/Lacuna/DB/Result/Map/Body/Planet.pm @@ -45,8 +45,8 @@ sub sorted_plans { my @sorted_plans = sort { $a->class->sortable_name cmp $b->class->sortable_name - || $a->level cmp $b->level - || $b->extra_build_level cmp $a->extra_build_level + || $a->level <=> $b->level + || $b->extra_build_level <=> $a->extra_build_level } @{$self->plan_cache}; return \@sorted_plans; } -- 2.51.2