JavaScript Date time sort (HELP!)

What does this format means 2018-07-01T00:00:00.000Z in JavaScript? How do I sort this (2018-07-01T00:00:00.000Z) with the help of JavaScript?

The format is YYYY-MM-DDThh:mm:ss.sssZ

YYYY = year
MM = month
DD = day of the month

T = separator between data and time

hh = hour (24 hour clock)
mm = minutes
ss.sss = seconds down to milliseconds

Z = means that it is Zulu, or Universal Time, or Greenwich Mean Time

It is a string so a basic comparison or sort function would work.