You need to write an SQL query for the information you want. To get the user id for all users, enter the following query:
SELECT users.username, users.id
FROM users
ORDER BY id
That will sort by user id. If you want to sort by username, replace ORDER BY id with ORDER BY username.