[api] sort the IDs to have reliable test suite