Closes #30 - Sorting of Elements

Also Closes #24