Minor

Using in-line sort for faster processing.