fix broken test by sorting expected and actual result