CHANGED:sort for test code for websocket function