Clean up natural sorting code a bit.