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 725163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:18:21+00:00 2026-05-14T06:18:21+00:00

I was wondering how I could sort this array, when I use asort right

  • 0

I was wondering how I could sort this array, when I use asort right now it does

14
17
16
15.

How would I go to have

14
15
16
17

  array(4) { 
        [15]=>  array(9) { 
         [2025]=>  string(80) "20:25 à 21:15 Spectacle / L'histoire d'un coeur / Auditorium, É.S.P. De La Salle" 
         [2135]=>  string(71) "21:35 à 22:25 Spectacle / Transfugue 2 / Auditorium, É.S.P. De La Salle" 
         [1430]=>  string(64) "14:30 à 15:30 Mise en lecture/Théâtre la Catapulte / De La Salle" 
         [110]=>  string(44) "11:00 à 13:00 Inscription / Pavillon Tabaret" 
         [1330]=>  string(49) "13:30 à 14:30 CÉRÉMONIE D'OUVERTURE / De La Salle" 
         [1550]=>  string(61) "15:50 à 16:40 Spectacle/Université Laurentienne / De La Salle" 
         [170]=>  string(57) "17:00 à 17:50 Spectacle/Université d'Ottawa / De La Salle" 
         [1750]=>  string(45) "17:50 à 19:00 REPAS DE L'AMITIÉ / De La Salle" 
         [1915]=>  string(76) "19:15 à 20:05 Spectacle / Attendre la pluie / Auditorium, É.S.P. De La Salle" } 
        [16]=>  array(8) { 
         [1845]=>  string(81) "18:45 à 19:35 Spectacle / Mimes d'horreur / Salle Académique, Université d'Ottawa" 
         [1955]=>  string(73) "19:55 à 20:45 Spectacle / Déroute / Salle Académique, Université d'Ottawa" 
         [8]=>  string(45) "08:30 à 11:30 Atelier / ABC du jeu dramatique" 
         [13]=>  string(41) "13:00 à 16:00 Atelier / Théâtre physique" 
         [1130]=>  string(28) "11:30 à 13:00 DÎNER LIBRE / " 
         [1620]=>  string(29) "16:20 à 18:20 SOUPER LIBRE / " 
         [220]=>  string(58) "22:00 à 23:30 BAL MASQUÉ / l'Agora du centre universitaire" 
         [210]=>  string(47) "21:00 à 22:00 Rétroaction / Université d'Ottawa" } 
        [17]=>  array(4) { 
         [950]=>  string(79) "09:50 à 10:40 Spectacle / Raison d'être / Salle Académique, Université d'Ottawa" 
         [110]=>  string(76) "11:00 à 11:50 Spectacle / Potionnée / Salle Académique, Université d'Ottawa" 
         [120]=>  string(28) "12:00 à 13:00 DÎNER LIBRE / " 
         [1330]=>  string(48) "13:30 à 14:30 CÉRÉMONIE DE CLÔTURE / De La Salle" } 
        [14]=>  array(1) { 
         [150]=>  string(49) "15:00 à 16:30 Préparation technique / De La Salle" } } 
  • 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-05-14T06:18:22+00:00Added an answer on May 14, 2026 at 6:18 am

    You want ksort(), which will sort the array by key instead of value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had accidentally tried this, which compiles! So I was wondering what could this
What would be the fastest way (execution wise) to to json.loads on this sort
I have to sort an array. Apart from the already existing types of sorting
I could use a set of eyes (or more) on this code. I'm trying
i am wondering could i access my app internal storage using emulator. I mean
Hi sorry still learning here and slow to learning code arguments. Just wondering could
i was wondering how could i emulate a mouse click with c# with kinect.
I'm wondering what could be some consequences of reusing the names of built-in types
I was wondering which could be a better way of mounting different apps for
I was wondering what could be the point in trying to delete committed changelists,

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.