test the sorting of tuples using std::array and std::sort