refactoring output
refactoring output
sorting
add sorting to readme