Sorting on id was the behaviour I guessed there should be here. It worked before because id was the first non-tag element in the record, but with maps it wont be.