Added test for LastActivityComparator and fixed a bug when sorting the last activity where sort order was wrong. The pipeline with newest activity should be on top.