Code: Select all
Array (
[category1]
(
[0]
(
[title] = A Note
[timestamp] = 012097521
)
[1]
(
[title] = Another Note
[timestamp] = 120974325
)
)
[category2]
(
[0]
(
[title] = A Third Note
[timestamp] = 093297534
)
[1]
(
[title] = A Fourth Note
[timestamp] = 012190785
)
)
)I have a way to do this but it sorts with respect to the category, i.e., it will sort each array separately by timestamp. I need a way to sort it with no regard to what category it falls under
An example of the outputted, sorted array would look like this:
Code: Select all
Array
(
[category2]
(
[title] = A Fourth Note
[timestamp] = 182190785
)
[category1]
(
[title] = Another Note
[timestamp] = 120974325
)
[category2]
(
[title] = A Third Note
[timestamp] = 093297534
)
[category1]
(
[title] = A Note
[timestamp] = 088097521
)
)