Implemented structures sorting