Bug 19509 - Database Tables in the Inspector should be sortable
authorjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Jun 2010 03:23:38 +0000 (03:23 +0000)
committerjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Jun 2010 03:23:38 +0000 (03:23 +0000)
commitf8831a2fd0c422604888f37389cb4d329eceb582
tree63a48d70eb6f3f06c0bf85af2d3d37ab6e16f2d7
parent9025cbaa729ed363ad5fdf1d208f3ae2bdc0ca02
Bug 19509 - Database Tables in the Inspector should be sortable
https://bugs.webkit.org/show_bug.cgi?id=19509

Reviewed by Darin Adler.

* inspector/front-end/StoragePanel.js:
(WebInspector.StoragePanel.prototype.dataGridForResult):
Make each column in the DataGrid sortable.
(WebInspector.StoragePanel.prototype._sortDataGrid.comparator):
Make sure to sort numeric columns by their numeric values, instead of lexicographically.
(WebInspector.StoragePanel.prototype._sortDataGrid):
Sort the entries in the DataGrid based on the selected column.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61463 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/inspector/front-end/StoragePanel.js