radicle: Keep pinned repos ordered in config
Do not return them in a random order in radicle-httpd, so that we can have them in a defined order in radicle-explorer.
Do not return them in a random order in radicle-httpd, so that we can have them in a defined order in radicle-explorer.
Changes:
- Keep uniqueness property
Just making this a Vec does not cut it, as this would allow duplicates.
Introduces a lot of complexity, when we could just use IndexSet as remarked by Fintan on Zulip: https://radicle.zulipchat.com/#narrow/channel/383670-patches/topic/radicle.3A.20Keep.20pinned.20repos.20ordered.20in.20config/near/527191345
Use indexmap::IndexSet.
Rebased