sorting feature matrix functions
sorting feature matrix & print functions