number format fix
more style changes
move sorting logic for history to backend
Merge pull request #82 from rpandey1234/master

History backend logic