From 8a717d90a638cac3fb582bed6c4206cabb307aa9 Mon Sep 17 00:00:00 2001 From: Timur Sufiev Date: Wed, 21 Jan 2015 20:05:01 +0300 Subject: [PATCH] Fix sorting by size for Project->Images table To fix it the proper sorting function should be used in tablesorter jquery plugin, this is achieved by marking the column with correct 'data-type' attribute value. (cherry picked from commit 8b02edc64306f35170a22056dbc726bce0fb2572) Closes-Bug: #1413266 Change-Id: Idc7dfab9cef5a32166e9ecdba77ccaf09170db15 --- openstack_dashboard/dashboards/project/images/images/tables.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openstack_dashboard/dashboards/project/images/images/tables.py b/openstack_dashboard/dashboards/project/images/images/tables.py index 77e70fc6f4..81424b03ed 100644 --- a/openstack_dashboard/dashboards/project/images/images/tables.py +++ b/openstack_dashboard/dashboards/project/images/images/tables.py @@ -244,6 +244,7 @@ class ImagesTable(tables.DataTable): disk_format = tables.Column(get_format, verbose_name=_("Format")) size = tables.Column("size", filters=(filters.filesizeformat,), + attrs=({"data-type": "size"}), verbose_name=_("Size")) class Meta: