I'm trying to learn how to implement various sorting algorithms(for job interviews) and i'm a little bit unsure about the general approach for comparing 2 values.For numbers it's easy but what about Strings ?What is a common way to compare 2 strings if you want to sort them alphabetically ?
Any response is highly appreciated .