Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7841053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:00:53+00:00 2026-06-02T16:00:53+00:00

Im looking to order the following array by the timestamp section of the array

  • 0

Im looking to order the following array by the “timestamp” section of the array from lowest to highest (ASC).

Array
(
[188] => Array
    (
        [date] => 28-04-2012
        [timestamp] => 1335571200
        [opposition] => Rayleigh 1st XI
        [teaperson] => 
    )

[182] => Array
    (
        [date] => 08-03-2012
        [timestamp] => 1331164800
        [opposition] => Galleywood 1st XI
        [teaperson] => 33
    )

[180] => Array
    (
        [date] => 07-07-2012
        [timestamp] => 1341619200
        [opposition] => High Roding 1st XI
        [teaperson] => 45
    )

)

I have seen the array_multisort function but unsure of how to use it correctly.

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:00:57+00:00Added an answer on June 2, 2026 at 4:00 pm

    Use usort

    usort($arr,function($a,$b) {return $a['timestamp']-$b['timestamp'];})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for any of the following (in order of preference): A Manhattan
Can someone please explain how to obtain this result from the following array? Here
I have the following query SELECT Id, Request, BookingDate, BookingId FROM Table ORDER BY
Looking at options for embedding the 3D Secure page inside my own order form,
I'm looking to do a SELECT with an ORDER BY on a VARCHAR(200) field.
I am just looking at sorting an NSArray of NSNumbers into numeric order but
I am looking for a Java framework which can validate order of elements in
I'm looking for an exhaustive, university-level book or guide to study in order to
Is it possible to order an NSMutableArray where it's values are NSStrings? I'm looking
Looking to move data from a table A to history table B every X

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.