chronological, recentFirst now respects metadata

Solves #111
Generalize getTimeUTC, chronological, recentFirst
Fix code style
Merge pull request #112 from simukis/sorting

Make chronological and recentFirst to respect metadata