I changed back to ```HashSet```, and sort by ID in the JS instead to receive the wanted order.