Browse Source

Trying to get sorting to work

master
Drew Short 10 years ago
parent
commit
e59070a4e2
  1. 2
      gui/src/main/scala/com/sothr/imagetools/ui/controller/AppController.scala

2
gui/src/main/scala/com/sothr/imagetools/ui/controller/AppController.scala

@ -240,7 +240,7 @@ class AppController extends Logging {
}
def setPagesContent(images: List[Image]) = {
this.currentImages = images
this.currentImages = images.sortBy(_.imageName)
//set the appropriate size for the pagination
val itemsPerPage = PropertiesService.get("app.ui.thumbsPerPage", "100").toInt
val pageNum = Math.ceil(this.currentImages.size.toFloat / itemsPerPage).toInt

Loading…
Cancel
Save