Permalink
Browse files

added sorting algorithm

  • Loading branch information...
1 parent 48959ea commit 54a9a6d5b56c217c59b04f23ac40950b5b36661f @rkoeppl rkoeppl committed May 5, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 modules/printengine.pl
View
@@ -18,6 +18,7 @@
use Sys::Mmap;
use Graphics::Framebuffer;
use Time::HiRes;
+use Sort::Key::Natural qw( natsort );
#import configuration from configuration file
our $cfg = new Config::Simple();
$cfg->read("printengine.cfg");
@@ -215,7 +216,7 @@
} readdir(DIR);
closedir(DIR);
#sort array
- my @pics_sorted=sort @pics
+ my @pics_sorted=natsort @pics;
print @pics_sorted;
#builtin framebuffer access

0 comments on commit 54a9a6d

Please sign in to comment.