fixed a sorting issue
added support for text alignment in datelines