GLib.Date.prototype.order

function order(date2: GLib.Date): void {
    // Gjs wrapper for g_date_order()
}
  

Checks if date1 is less than or equal to date2, and swap the values if this is not the case.

date2

the second date