nizam0786
4 months ago

Sort collection by Key value.

Posted 4 months ago by nizam0786

Hi I have a collection where the key is a date time value which I want to sort in descending order.


Collection {#427 ▼
  #items: array:3 [▼
    "2019-05-08 14:17:34" => Collection {#445 ▶}
    "2019-05-10 14:19:28" => Collection {#429 ▶}
    "2019-05-09 14:31:17" => Collection {#432 ▶}
  ]
}

Thanks in advance

Please sign in or create an account to participate in this conversation.