diff --git a/app/views/admin/web_resources/order.html.erb b/app/views/admin/web_resources/order.html.erb index f6a3c72..dfd0f08 100644 --- a/app/views/admin/web_resources/order.html.erb +++ b/app/views/admin/web_resources/order.html.erb @@ -83,7 +83,7 @@ } data.push(hash); } - data = data.sort(function(a,b){return a.index > b.index}); + data = data.sort(function(a,b){return a.index - b.index}); renderSortedTable(data,table_element); }