added fun of sorting
fixed fun of sorting
fixed all fun of sorting
reworked sorting and output