iOS endpoints: sort results

Make the sort order deterministic.

Signed-off-by: diditclear <didyourupgradeclear@gmail.com>