Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

uloncl's avatar

help with collections, merging 2 collection

for each item in collection, if item in another collections date is after current collection items date insert other collection item after current collection item

0 likes
1 reply
uloncl's avatar
uloncl
OP
Best Answer
Level 1

oh nvm i can just concat the other collection then sortby() the created_at

Please or to participate in this conversation.