add test for sorted width