Fixed channel sort

Channels now sort properly, however incoming messages break the system.