Added a function for natural sorting

Closes #177