Fixed sorting of the build status column

- Added unit tests for sorting algorithm
Merge branch 'staging' into v0.8.9-to-katana2