Fix sort order
Merge pull request #426 from magabriel/fix-sort-order

Fix sort order for record.previous