From 63e93221bdbc272f45a7676a91b66041f2451a60 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Thu, 29 May 2008 19:36:50 +0000 Subject: [PATCH] ordered resolutions numerically instead of ascibetically --- lib/WebGUI/Asset/File/GalleryFile/Photo.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset/File/GalleryFile/Photo.pm b/lib/WebGUI/Asset/File/GalleryFile/Photo.pm index 0c7812ab4..c158dc2f4 100644 --- a/lib/WebGUI/Asset/File/GalleryFile/Photo.pm +++ b/lib/WebGUI/Asset/File/GalleryFile/Photo.pm @@ -205,7 +205,7 @@ sub getResolutions { my $storage = $self->getStorageLocation; # Return a list not including the web view image. - return [ grep { $_ ne $self->get("filename") } @{ $storage->getFiles } ]; + return [ sort { $a <=> $b } grep { $_ ne $self->get("filename") } @{ $storage->getFiles } ]; } #----------------------------------------------------------------------------