Sort by favourites

Resolves issue #43