change printed format of sortByLabel(). Passed all tests.