weird build error when adding sort_by_col function