added support for horizontal mode of sorting. also added a plunker in demo for the same.