I think you mean you want to order the values in a specific column.
Your qeury should look something like this:
SELECT userid, firstname, lastname FROM mytable ORDER BY userid ASC
You could also ORDER BY another column or ORDER BY userid DESC(ending)
Maybe you are using LINQ? That has an Order By Asc/Desc too.
I hope this is what you wanted to know. Good luck :)