Sorting numbers
To be more specific, i need to have 10 numbers that get entered and sorted. I also need to ask a question like if i want to sort them from least to greatest or vise versa. And i also need to ask them how many numbers i want to sort. Please help me with this program. Show me thanks!
First of all, you should of replied to your original post. Secondly, most people on this forum are willing to help you do your homework, but not do it for you.
You should post your best attempt at the problem, and then post any errors you get, or anything that isn't behaving as you want it to.
Similar Messages
-
Sorting numbers Zen Mozaic EZ 100
!Sorting numbers Zen Mozaic EZ 00= Hi, I have a Creative Zen Mozaic EZ 00, and I use this player primary for <span class="Apple"><span class="Apple">Audiobook.
<span class="Apple"><span class="Apple">I have a problem when I transfer more than book to my player.
<span class="Apple"><span class="Apple">?
<span class="Apple"><span class="Apple">When I use the Albums, alle the files are not sorted, why isn't is sorted using the filename.
<span class="Apple"><span class="Apple">?
<span class="Apple"><span class="Apple">The only solution I have found, is using all tracks, here the files are sorted in filename order.
<span class="Apple"><span class="Apple">?
<span class="Apple"><span class="Apple">How do I sort the files in folders or Albums.
<span class="Apple"><span class="Apple">?
<span class="Apple"><span class="Apple">Kind regards,
<span class="Apple"><span class="Apple">KennethHi,
Did you transfer the audiobook using Audible Manager? -
How To: Sort Numbers in Ascending Order in a Generated List
Greetings! How do I set up a Generated List of Paragraphs so that it sorts in true ascending order? What I want is:
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
1.10
I have tried every trick I can think of with the sort order listed on the reference page. But all I can get is something that sorts by individual number (ignoring the numeric value) like:
1.1
1.10
1.11
1.2
1.20
1.21
1.3
Any help is much appreciated!Hello there, Michael! Thanks so much for looking at my post! Alas, the LOP will not work. I should have explained more, but it was so complicated I thought folks would give up reading.
Here's the best I can render it without getting permission to share a good example document. I do not blame anyone if it's too cumbersome or convoluted to wade through...
This is a requirements document which has sort of a "legal" tinge to it--as the document evolves we must maintain traceability for individual requirements. This means, for example:
Version 1 - I have requirements 1 and 2.
Version 2 - I need to add a new requirement, which should appear before requirement 1 in the document. Even though it comes before requirement 1 in the document, numerically it will be requirement 3 and requirement 1 will remain requirement 1.
Version 3 - I need to remove requirement 2. Even though I now have only 2 requirements, their numbers will not change (they remain requirements 1 and 3, appearing in reverse order).
Version 4 - I need to move requirement 3 to be after requirement 1. Again, the requirements keep their original number, even though their position has changed and there is no longer a "requirement 2" number in use.
Originally, I told the team (I'm doing this for a different dept), that they would have to hand-number requirements, which they did for a while. But that was getting very cumbersome, and the scenarios above are limited to one or two occurrences per document. So I created an auto-number sequence for them to use in the initial version and added a little smoke-and-mirrors work process to take care of changes in later versions. The last bit of chicanery I cannot get to work is the index...
Even if there are no changes to the requirements after the initial version, the index still does not sort in ascending numeric order. It was working with the hand-numbered requirements because they were using leading zeros. But without being able to include leading zeros in the auto-numbering formats (I tried the "use a zero as a tab leader" solution and like to have thrown my new monitor out of the window), I cannot find a solution.
Or rather, I think the solution is "you have to hand-number requirements".
For anyone who has made it this far, I truly appreciate your time and patience!
SFT -
Adobe Combine Feature - Sorts numbered files incorrectly
At my company we use a scanning software called Kofax. We also have copies of Adobe Acrobat Standard 6-9 depending on how old the work station is.
Lets say I scan a batch of 120 pages. It will scan each page as an individual .tif file and put them all in a folder.
The naming convention for each page is:
1.tif
2.tif
3.tif
etc
etc
Windows explorer sorts these numbers in correct order. If I decide to select all 120 pages I just scanned, right click, Combine into PDF, it will place the pages in the following order.
1.tif
10.tif
11.tif
12.tif
etc etc
100.tif
101.tif
etc etc
2.tif
20.tif
21.tif
etc etc
This basically requires me to resort the entire batch in the Adobe combine screen. This is very time consuming and tedious. Is there any way to get the Adobe software to recognize the "human" numbers in ascended order? Any help with this would be GREATLY appreciated.This involves using a photoeditor with renaming capabilities such as ACDSee OR using the command-line (Run>cmd.exe) from the Start menu. For the command line you would type "help for" and a help file for the "for" command would come up. With "for" you can run an iterative loop that would cycle through your files based on certain characteristics and based on the variables you pass it you would be able to renumber your files from 1.tif to 001.tif and 10.tif to 010.tif for example. Numbers 1-9 would be in one for loop, numbers 10-99 would be in another, and if you had to rename for files going into the thousands you would use 100-999 as another for loop, renumbering to a 0100.tif naming convention. That is called "padding" your file names.
-
Sorting numbers stored in variables
I'm completely new at java and would like some help with a certain problem.
I have 5 numbers, num1, num2, num3, num4, and num5.
I have them stored in variables as listed. I'd like to know, is there a way to sort them using array.sort or would I have to use another method?I have 5 numbers, num1, num2, num3, num4, and num5.
I have them stored in variables as listed. Are you saying you have 5 different ints declared like
int num1, num2, etc.or an int[] with length 5?
I'd like
to know, is there a way to sort them using array.sort
or would I have to use another method?If they are stored in an array you can use http://java.sun.com/j2se/1.5.0/docs/api/java/util/Arrays.html#sort(int[])
to sort them. -
Sorting - numbers first and then the alphabets ?
Hi,
I have a list of names
starting with space, starting with numbers and some starting with upper case and then some starting with lower case letters.
The default order by sorts is - spaces, numbers, upper case alphabets and lower case alphabets.
But I want to order the names by spaces first, lower case alphabets, upper case alphabets and then the numbers.
How do i do this? Any help is appreciated.
thanksHi,
So you have 62 characters (10 digits, 26 capital letters and 26 small letters) that are now being sorted in one order, but you want them sorted in another order.
ORDER BY a TRANSLATEd version of the string:
SELECT name
FROM table_x
ORDER BY TRANSLATE
( name
, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
, '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
);Notice that the 2nd argument to TRANSLATE has the 62 characters in the desired order.
The 3rd argument has the same 62 characters in the default sort order, that is, the order in which they will be sorted.
That is:
'a' will now be sorted as if it were '0', the very first of the 62
'b' will now be sorted as if it were '1', the second of the 62
'9' will now be sorted as if it were 'z', the last of the 62 -
Sorting numbers based on value into arrays
Hi ...
I currently have a large list of numbers inside an array.. say from 0 to 400 000. They appear in order, but are unevenly spaced.
Now I'd like to sort these numbers into arrays.
I want to say: Put all numbers from 0 to 10 into newArray[0]. Put all numbers from 10 to 35 into newArray[1] ....
In the end I need a two - dimensional array with numbers. Is this possible in LabView ? Can it be done in acceptable speed ?
Thank you for your helpWhile I haven't figured out a way to do this efficiently, the attached
shows a method of doing it number by number. Perhaps the most
efficient may be to insert Matlab code and use a sort function, or
equivalent in c.
To use this to sort multiple numbers, put inside a for loop and build up an array. (also see attached).
Message Edited by Robert.Bedford on 09-19-2005 08:53 AM
Attachments:
single_number_sort.vi 18 KB
array_sort.vi 21 KB -
Sorting numberic data in a spry table
First Problem:
I am having trouble getting an secondary sort to work in a
spry table. As long as I do a single sort every thing works just
fine, but as soon as I try to do a secondary sort.... nothing
works.
Second Problem:
The data I am using ranges from 0 to 10. When I sort "1" and
"10" end up being right next one each other, but the 10 should be
on top. So the sort ends up as 9,8,7,6,5,4,3,2,10,1. when it should
be 10,9,8,7,6,5,4,3,2,1.
I'm sure it is something simple that I have not figured
out.... has anyone else run into this and solved it?
thanks,there is an issue with this, regardless if you do ds1.setColumnType("Q407Q207A", "number"); the Damn thing does not sort negative numbers. Is there a way to fix this, You know what amazes me is that people would not take this into consideration, yeah lets release a framework with half the basic functionality. Sorry don't mean to complaint but I've been trying to find a fix for this for over a month and nothing not on the Live Docs nor out there on the WEB.
-
Sorting numbers stored as text
Business1 stores ItemCode as an alphanumeric, which makes sense. But we only ever use numbers, so when I try to sort a report by ItemCode, or select a range by ItemCode I get things like this:
4100
41001
4101
4102
42001
42003
42004
4201
Can I get CR to treat these as numbers, and sort/select them as numbers?Hi Stuart,
try to use any one formula given below , and try to short on this formula field
1] right("00000000" & ,10)
or
2] toNumber()
You can suppress this field,so it will not be visible to the user
Regard's -
Sorting numbers using itab(urgent)
hi,
i want to sort the number using itab. i am writting the code as follows. but i am not getting itab sorted asending? pl. tell me why????
Data: itab2 type table of string with header line.
if IT_BOM1-LABST < IT_BOM1-MENGE.
ITAB2 = MIN.
append itab2.
ELSE.
itab2 = w_shortb.
append itab2.
ENDIF.
if itab2[] is not initial.
sort itab2 ascending.
endif.
read table itab2 index 1.
If sy-subrc = 0.
Write:/ 'The minimum batch is', itab2.
endif.
numb = itab2.
write :/ numb.
when i am debugging then itab not showing sorted in ascendingHi Samir,
what about a slim solution?
data:
lt_mng type sorted table of mard-labst
with unique key table line,
lv_menge like line of lt_mng.
insert:
IT_BOM1-LABST into table lt_mng,
IT_BOM1-MENGE into table lt_mng,
w_shortb into table lt_mng.
read table lt_mng into lv_mng index 1.
Write:/ 'The minimum batch is', lv_mng.
Regards,
Clemens -
Sorting Numbers stored in variables....using if/else
Hey there, I'm curious, how would you sort 3 integers using only five if's and five elses and no other operators besides a < (less than) operator? Some help would be much appreciated! thanks. ishan
well with the topic i brought back there, didnt
really follow the boolean, and i couldnt figure out a
way to simply use only if's elses' and > rather than
using boolean, and what not.. like for integer a, b,
c; would i go into the possible permutations and
start from there? not sure how to go about it..You will need to put them in an array or List. Then you can quicksort them.
Hmmm let me think....
if
length<2 return
choose pivot
if less than pivot
put in left bucket
else
put in right bucket
recurse left bucket
recurse right bucket
returnThat's 2 if's and one else. -
How do you sort numbers in the same field in excel 2010 the same for access 2010
Hi,
Is there a way to sort data horizontally in the same field in excel and for access, or is there an addin that can do this
or function code
field data 6-4-25-23-11-45
sort order 4-6-11-23-25-45
Regards,
Rudolf
rudolfelizabethsort data horizontally in the same field in excel
Does "in the same field" means that the string "6-4-25-23-11-45" is located in one cell?
In that case you have to use an UDF. Paste this code into a regular module:
Function SortNumbersPrim(ByVal What As String, Optional ByVal Delimiter) As Variant
Dim Arr, Temp
Dim i As Long, j As Long
Arr = Split(What, Delimiter)
For i = LBound(Arr) + 1 To UBound(Arr)
Temp = Val(Arr(i))
For j = i - 1 To LBound(Arr) Step -1
If Val(Arr(j)) <= Temp Then Exit For
Arr(j + 1) = Arr(j)
Next
Arr(j + 1) = Temp
Next
SortNumbersPrim = Join(Arr, Delimiter)
End Function
Then use a formula like this:
=SortNumbersPrim(A1,"-")
Andreas. -
Help Sorting numbered photos for a slide show
I have a group of photos named 1.jpg - 270.jpg, if I sort them by title it groups 1.jpg with 10.jpg with 100.jpg, etc..... Any creative advice for having iPhoto sort the names in true numeric order?
Use Leading Zeros.
001. 002, 003 etc
Regards
TD -
Hello,
I have two ordered lists LIST1 and LIST2 which elements are composed
of a field named "value" (an integer number) and a field named "prox"
that points on the following element ("nil" when there aren't new
elements).
The elements are disposes in each list in crescent order of value.
What's the optimal Java algorithm to print in crescent order the
combination of the elements of both lists?
For example, if the first list is formed by values 8, 12, 13, 28, and
the second by values 10, 11, 35, it must print the list 8, 10, 11, 12,
13, 28, 35.
Thanks in advance to all
DarioHello,
I have two ordered lists LIST1 and LIST2 which
elements are composed
of a field named "value" (an integer number) and a
field named "prox"
that points on the following element ("nil" when
there aren't new
elements).
The elements are disposes in each list in crescent
order of value.
What's the optimal Java algorithm to print *in
crescent order* the
combination of the elements of both lists?
For example, if the first list is formed by values 8,
12, 13, 28, and
the second by values 10, 11, 35, it must print the
list 8, 10, 11, 12,
13, 28, 35.
Thanks in advance to all
DarioPlease present your algorithm in the form of pseudocode and
tell us where you have problem with Java.
this will pinpoint your problem and hence you will get faster response.
thanks -
ITunes 12 - Sort album with numbers in title by natural order
Hi All
Searched but cannot find a solution to this.
Now I've got iTunes 12, I noticed that when I added a new album titled "Triple J Like A Version 10", it sorts this album at the beginning of the sequential list of albums. i.e.:
Triple J Like A Version
Triple J Like A Version 10
Triple J Like A Version 2
Triple J Like A Version 3
etc
It should appear after Triple J Like A Version 9.
My other albums added on earlier versions of iTunes are fine. For example Triple J Hottest 100 Volume 10 comes after 9 & before 11 where it should be; Volume 20 comes after 19 & before 21.
Is there any way to change the sort order to sort numbers in their natural order?
Thanks
CraigPad out the sort values with leading zeros so the sort names become:
Triple J Like A Version 02
Triple J Like A Version 03
Triple J Like A Version 09
Triple J Like A Version 10
tt2
Maybe you are looking for
-
Can no longer see my purchased books in Adobe Digital Edition software
Because my purchased books are no longer listed on my Adobe Digital Edition software, they can no longer be downloaded into my E-Reader (due to Rights protection). I do not understand why they disappeared from the Purchased list. I would like Adobe
-
Sorry one more question, "USB Device not recognized" ???
I got this new iPod dock, called the Harman/Kardon GO+PLAY, they say it should sync with all new iPods... when i connect this dock to my computer through the USB, and then I connect my iPod to the dock, it always says on my computer, "USB Device not
-
I just got a Thinkpad R50e and have been trying to get Arch to work with Wifi on it (it uses the ipw2200 driver). I've got the modules all installed and loaded and stuff, but Arch doesn't seem to see the device: [root@mezzanine zero]# ifconfig -a eth
-
Two very different results using the same settings (H.264 / Quicktime Pro)
I'm a bit confused, I have used Quicktime Pro (v7.1) to encode DV into H.264 for iPod and this particular video is 18 minutes long and came out looking very good with the following settings; VIDEO: H.264 at 200kbps, Baseline Profile, 25fps, Auto Key
-
Adding keywords to multiple photos
Any idea how to make this work better? I know it's possible in the "keywords" window but that's not very usable when you have 700 different keywords. I really miss the Keyword Assistant...