I have the same problem here with the sort, even with 462. But at least with that version, hitting F5 to reload the bowser page, suddenly it starts working. This happens in both, FF2 and IE7.
I had the same issue. A bit of alert-box-debugging
helped me find out what's going on.
The problem occurs if your main inbox is empty, but you have some mails in other folders. It's because RC enables sorting when it displays the folder list, not upon switching between folders nor after the number of messages in current folder changes (for example due to deletion).
So when you have your LDA put all your mail in appropriate folders leaving your main inbox empty, then sorting will be disabled for you, and switching to filled folders won't update that state.
So my first patch attempt was to adjust the sorting capability on every folder switch and each time folder contents is updated by turning sorting on if there are more than 1 messages. But then I realised, that it should be possible to change sorting order even if the mailbox is empty, since it affects your preferences and lets you change your sorting order for future sessions. So all I changed was
make RC unconditionally enable sorting.
Here's the patch for program/js/app.js from svn-464
< this.enable_command('toggle_status', true);
---
> this.enable_command('toggle_status', 'sort', true);
150,153c150
< {
< this.enable_command('nextmessage', true);
< this.enable_command('lastmessage', true);
< }
---
> this.enable_command('nextmessage', 'lastmessage', true);
155,158c152
< {
< this.enable_command('previousmessage', true);
< this.enable_command('firstmessage', true);
< }
---
> this.enable_command('previousmessage', 'firstmessage', true);
189c183
< this.enable_command('select-all', 'select-none', 'sort', 'expunge', true);
---
> this.enable_command('select-all', 'select-none', 'expunge', true);
Don't forget to refresh your browser's cache after applying this.
Hope this helps.
And thumbs up to the developers - RoundCube + Dovecot simply rock together.