added alphabet and timewise sorting