IrcBufferModel: implement support for sorting

- dynamic sorting -> setDynamicSort(true)
- custom sort order -> reimplement lessThan()