Sort notes consistently with the server. Fixes #3.