ENH: Implement Repository using a QMap instead of a QHash so that items are ordered by key.