sort cursors by name in main window to fix #34