Refactor of sort_by_keys, filtering by donation edition in tagbrowser