Sort rows even when there aren't rows.

Change-Id: Ifcfc5a44a16242fffda084da5449f82e2bb23396
Fixes-Issue: CLIENT-504
Reviewed-on: http://gerrit.dmdirc.com/3393
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>