details bug fixed, edit bug fixed and zeroes to be present in dates

'sort' command added as well