Select both columns in your range in columns A and B, and sort by column B