Allow sorting of database columns

Added sorting for row and index counts, as well as data, index and total
space consumed for specific database view.