sort demo works