Added some sorting hackery to index status table