Fix historical tasks ordering

Fixes #149 

Added comparator to appropriate collection so that it can automatically sort tasks client-side.

@tpetr @wsorenson @gchomatas