answersLogoWhite

0

Assuming that the values are stored in an array, you can use the php function sort($array) to sort ascending, and rsort to sort descending. The following link gives a table that lists all of the built in PHP sort functions:

http://php.net/manual/en/array.sorting.php

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Is an ascending aortic aneurysm more dangerous than a descending aortic aneurysm?

No. Both are equally dangerous.


What is the difference between melodic and harmonic minor and major scales?

Harmonic minor scale has a raised 7th in both ascending and descending scales. Melodic minor has raised 6th and 7th in ascending scale. It is similar to natural minor in descending scale.


Write an Assembly language program which implements sorting algorithm both ascending and descending order and display those numbers with certain delay say of 5sec between successive displays?

das


How are ascending and descending intervals calculated in music theory?

Ascending and descending intervals in music theory are calculated by counting the number of letter names between two notes, including both the starting and ending notes. The distance between the notes determines the interval, which can be classified as perfect, major, minor, augmented, or diminished.


What are the characteristics and differences between the melodic major scale and the traditional major scale?

The melodic major scale differs from the traditional major scale in that it raises the sixth and seventh notes when ascending, but reverts to the natural form when descending. This creates a different sound and feel compared to the traditional major scale, which maintains the same pattern of intervals both ascending and descending.


Second order neurons of both specific and nonspecific ascending pathways terminate where?

Second order neurons of both specific and nonspecific ascending pathways terminate in the thalamus. From there, the thalamus sends projections to the somatosensory cortex for further processing of sensory information.


What is the difference between harmonic and melodic minor scales?

The harmonic minor scale has a raised seventh note compared to the natural minor scale, while the melodic minor scale has both a raised sixth and seventh note when ascending, but reverts to the natural minor scale when descending.


What are the similarities between Hindi Arabic system and roman Numbers?

They are both worked out in descending order of greatness and they both are increased by increments of 1's 10's 100's ... etc


In first order both x and y in chemistry?

what in 1st order?? if you are asking about 1st order chemical equation then there will be only one variable with power 1.


How many such pairs of digits are there in number 36725918 each of which has as many digits between them in the number as when the digits are arranged in descending order within the numbers?

The number is: 36725918 In descending order that is: 98765321 The pairs of numbers that have as many digits between them in both are: 3,9 5,8 6,7 So there are three pairs.


What are the differences between the harmonic minor and melodic minor scales?

The harmonic minor scale has a raised seventh note compared to the natural minor scale, while the melodic minor scale has both a raised sixth and seventh note when ascending, but reverts to the natural minor scale when descending.


What does three point contact mean when using a ladder?

It means that at least three points of your body, it might be either two hand and one foot or one hand and two feet, must be in touch with the ladder while ascending or descending. So keep your both hands free, never carry anything with your hands, while climbing. Please note that the important part is while ascending and descending. Once you arrive to the level you want to work at, you may do light work that may require both hands. Do not lean out far enough to cause your belt buckle to extend outside the side rails. THERE IS NO FALL PROTECTION REQUIRED ON LADDERS. Always follow manufacturer's recommendations.