implemented sorting
doc
0.5.0