Fix sort order in flashcards (sorting by created_at and not id)