First version of Sort structure