sort sites/inputs/formats by id