Sort the session identifiers