Actually what i meant was my client wants that the automatically sorts the data according to the date to inputs.For example i put in a data abc with the date being 23rd june 2014 and the next data cbd with the date 21 may 2014 the 21st may data shall appear first . I hope can make you understand.