Fixed sorting columns, now it sorts only columns which have 'order' option set