Sort files with ls by last modified date and time.

The ls –help told us :
-t sort by modification time, newest first
You need to pass the -t option to the ls command to sort by time modified.

Also if you want to reverse the order of the sort then use -r option.

Let see one example:

with iso time style

with full-iso time style

with long-iso time style