load list with the right list sort

This commit is contained in:
j 2014-10-31 14:18:26 +01:00
parent 35cc6abd95
commit ab87ba22d7

View file

@ -113,7 +113,11 @@ oml.ui.list = function() {
}, },
oml_find: function() { oml_find: function() {
if (ui.listView == oml.UI.getPrevious().listView) { if (ui.listView == oml.UI.getPrevious().listView) {
that.reloadList(); if (ui.listSort == oml.UI.getPrevious().listSort) {
that.reloadList();
} else {
that.options({sort: ui.listSort});
}
} }
}, },
oml_item: function() { oml_item: function() {