[SP-22] added attribute sorting