Fixed a Sorting bug

Fixed sorting and added css based sorting arrows.