Fixed chat sorting