Are there any sorting algorithms suitable for sorting both short and long inputs? Eg, they have a good computational complexity, but also a fast constant factor as well.