Bug in the sorting matrix?

Here is my code:

for (var pNum:int = 0; pNum < = 144; pNum ++) {}
var itemCount:Number = this [("P" + pNum)] .length;
var left: Number = 58;
. source.sortOn this [("P" + PNUM)] ("height", Array.DESCENDING);
for (var theArray:int = 0; theArray < this [("P" + pNum)] .length; theArray ++) {}
}

If I have two items in my table, at height of 200 and the other to the tune of 80. The kind puts 80 to 200. If my point of heights are 80 and 40, it sorts correctly and put the 80 in front of the 40. If my point of heights are 140 and 100, then it sorts wrong, put 100 to 140. The sorting only works for numbers less than 100. Is it a bug, a limitation, or I do something wrong?

Well, first of all looking at this block of code, I'd say that you might benefit from a bit of refactoring to simplify everything you do.

for (var pNum:int = 0; pNum<= 144="" ;="">

sortByHeight (pNum);
}

private void sortByHeight(index:int):void {}

var itemCount:Number = this [index] .length;
var left: Number = 58;
Cette.source.sortOn [index] ("height", Array.DESCENDING);

for (var theArray:int = 0; theArray< this[index].length="" ;="">
}
}

You will maybe just do this instead of just "Array.DESCENDING", looks like it is sort your numbers as ASCII characters or something:

Array.DESCENDING | Array.NUMERIC

Tags: Flex

Similar Questions

  • Window Live Mail 2011 - was a bug - in the case of "sent" folder by clicking on the To: column head seems to sort emails by topic instead of field

    Window Live Mail 2011 - was a bug - in the case of "sent" folder by clicking on the To: column head seems to sort emails by topic instead of field

    In short, many users of Window Live Mail 2011 had the same problems. Please Microsoft Ltd fix!

    1: you send messages in a forum XP and WLMail 2011 does not work on XP.

    2: the Windows Live Mail Forum is located here.
    http://www.windowslivehelp.com/forums.aspx?ProductID=15

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • Bug in the conditional for loop with an array empty

    There seems to be a bug in the loop with a conditional terminal.

    If an empty array is connected to an indexed table auto entry tunnel, a tunnel of output array has an element instead of zero.

    The constant matrix is left empty.

    High loop without the conditional Terminal produces an empty array.

    Conditional down with a terminal loop never true generates an array containing a single element

    Thanks to LabVIEW version 8.5


  • I think that there is a bug in the function RT Set CPU pool assignments (SMP)

    I'm trying to configure Symmetric multi Processing on a PXI controller which has 2 CPUs.  I check the number of processors using RT get number of processors (it gives me 2).  I have a constant matrix of wire to the RT Set CPU pool allocations function and create an array of 2 elements with system and reserved as the two values (to assign a single processor for my timed loop and the other for "everything else").

    It works, which means it seems to do the assignment.  But if I look at the assignments of Pool Set CPU error line, it returns-2231, "invalid CPU pool settings. Each pool must contain at least 1 CPU. »

    I do not know what that means, or why I am getting the error (I might just "ignore it", but if the error is 'real', which is not supposed to do).  The entrance to the Pool Set CPU assignment is described in the documentation as "an array of enumerations, with an entry for each CPU.  For me, this means 2 entries, which is what I have.

    Does anyone have a rational explanation of what's going on?  Is this a bug?  The documentation is the problem?  I have attached the front (showing the number of processors and the error output) and the (very simple) block diagram.

    Bob Schor

    Thank you, Bobby.

    I reread carefully the Note help "Specifies the Set of processors available for automatic load balancing".  Now that I know the 'right answer', I can interpret what is written as planned, but it's not easy!

    It is also curious that, although the previous example has generated error-2231, if we deleted the error (or wired never error line), function has, in fact, affect the system and Timed Structures pool to CPU0 (I have a few 'real' testing code that shows CPU0 with Structures Timed cycles).  Given that the function "does the right thing" even if you specify parameters of 'bad', perhaps it should be treated as a warning, not an error (or otherwise make a mistake of 'real' not assigned to a pool - it also wouldn't hurt to have a less obscure the Error Message, or more explicit "be sure to have at least a CPU explicitly assigned to each system and Timed Structures pools") , maybe in "BOLD".

    This code has no error:

    Hereby I give you credit for the 'Solution', but I'll mark my answer as the Solution because it has a photo to help readers who are intrigued by the question and our responses.

  • A bug in the Sansa and how to overcome

    My Windows Media Player to synchronize all media for my rocket not only mp3s which ate memory, and because the photos were not correctly formatted I could not really see them. I deleted them manually in Windows, but some of them have been corrupted so all sorts of gremlins started to appear on the "rocket" which was stopped he synchronization and done play because it might be stuck on the "refreshing media...". ».

    Fortunately, I have actually solved the problem myself.  To remedy the screen «Refreshing...» ", I plugged my rocket to the PC with the usb cable to launch screen animation 'trendy '.  Then I quickly unplugged the device at the end of the rocket that I dumped in the last played list, press menu and scroll to settings and from there, I formatted the memory.  Fortunately, I have a back up of all my songs and went into Windows Media Player to change the synchronization to only MP3s options to prevent it happening again.

    So, like a synapses first remember to only sync your mp3s and make sure the sync options don't dump everything in. Secondly, only use the Media Converter for Sansa for photos and video (sorry that you can not look at copies of digital file of your DVD because that DRM does not allow for conversion). And third, always back up your files.

    Rigs83 wrote:

    So, like a synapses first remember to only sync your mp3s and make sure the sync options don't dump everything in. Secondly, only use the Media Converter for Sansa for photos and video (sorry that you can not look at copies of digital file of your DVD because that DRM does not allow for conversion). And third, always back up your files.

    Or simply avoid the problem completely and do not use WMP or 'sync' at all.

    Many use, many others are frustrated with it, few have mastered.

    MSC mode and a few clicks of the mouse (drag & drop) are all you need. Period. You decide what happens to your player, you decide where it goes, you decide when he goes. Not a bunch of minions of MS who cannot find their own @ss with both hands who developed this technology project of Doo - Doo they call a 'media player '.

    Fact. Simple. Not surprisingly, no headaches, no worries. If really you need a software program to 'manage' your music for you, there's always the requesite 'fruity' player and it is over-priced, over-rated, worked under & all also not manageable "_-Tunes.

    And btw, this isn't a bug in the Sansa, but also a question WMP like CB escaped too. This is a "user-controlled setting" in Windows Media Player! It has nothing to do with the Sansa, so you may want to change the subject line of your message to avoid confusion for others.

    I repeat...

    THIS IS NOT A BUG IN SANSA!

  • Bug in the classic report based on the function?

    A simple example, suppose I want a classic report in which I can change the sort field by selecting in the P1_SORTFIELD element. Apex 4.2, I was able to implement the report using the PL/SQL function

    return "select ENAME, SAL from EMP by | : P1_SORTFIELD;

    I can't do that in Apex 5 on my workspace apex.oracle.com. I either get a runtime error "SQL command not completed property" if I use generic column names, or 'not all variables' if parse error I do not have.

    My real application use generic column names, so I am more interested in a solution to this.  For example, I tried to create a report with the source

    return "select ENAME from EMP by ENAME;

    If I run using the generic column names I always get the runtime error "command SQL not successfully completed.

    Is this a bug?

    Ed Sciore

    Hi Ed,

    I ran your application in debug mode and displays the following error output.

    show report
    determine column headings
    
    ...Execute Statement: select ENAME, SAL from EMP order by ename
    order by 1 nulls last
    
    Logging exception:
    Sqlerrm: ORA-00933: SQL command not properly ended
    Backtrace: ORA-06512: at "SYS.DBMS_SYS_SQL", line 1445
    ORA-06512: at "SYS.WWV_DBMS_SQL", line 464
    ORA-06512: at "SYS.WWV_DBMS_SQL", line 475
    ORA-06512: at "APEX_050000.WWV_FLOW_DYNAMIC_EXEC", line 411
    

    See the other "order by null 1 last" that is added to your statement. This is what the origin of the problem. The additional order by is caused by the "Sortable" indicator enabled for your columns. If you disable the sort, because will work you who control in your SQL statement in the report well.

    I'll take a look tomorrow, if we had a different behavior in 4.2 to automatically disable these flags and how it is actually easy to determine safe at the time of the design that your pl/sql function returns a SQL statement with an ORDER BY clause.

    Concerning

    Patrick

    Member of the APEX development team

  • On the sorting of reports before pressing the buttons

    Hello

    I use APEX 3.2.

    I have an application where some users have access to a report with the default values. The filters are working well, except when we sort a column before submitting the page. If I sort before submitting, I lose all data. If I submit first, everything works fine. My problem is that I don't have default values for my SQL source. I can't reproduce the bug with the SQL Developer or tools like that. I still have some data. I don't understand the problem.

    For a temporary solution, I run a 'doSubmit(); When I'm running the page first. But I don't like this idea.

    You have an idea why some of my settings seems to be empty, so that they all have a default script?

    Thank you!

    Bodart

    Published by: leinadjan on March 26, 2012 13:58

    Hello

    Create once the process header or calculation for items and your default value of the session state value.
    If you just use the default value of the element, it is not stored as a session before you present the page.

    Kind regards
    Jari

    -----
    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • There seems to be a bug in the Pages.  I imported a text in my document to a different font.

    I imported a text in my document Pages.  The two texts were different.  Then I selected all the text and selected in Times New Roman for everything.  I saved and you leave.  I have then opened the document, and the types of two texts are still there.  How can I get everything to be Times New Roman?  That's why I think there is a bug in the Pages.

    Probably, you have two versions of the document and opened a bad.

    Peter

  • How can I change the sort order in the finder / media / photos?

    When I want to open a photo in an application I can access photos via the media / photos. The sort order is ascending. I want that the descending sort order. Where can I do this? Thanks for the reply! Christian

    You can click right in the grid of thumbnails and choose to display it as a list. You can then sort the columns by clicking on them.

    I don't know of a way to get to another level by default.

  • What is the sort order used Finder?

    I did a little research on this issue and found that (unless I'm missing something), the sort order of the Finder is not what it is supposed to be.

    The only requirement that I found is this note archived tech how Finder lists items that are sorted by name (Mac OS X) from 2012.

    In fact, almost everything what he described how Finder behaves, with the exception of the note at the bottom:

    Technically speaking, the Finder sort is based on the Unicode snack Algorithm, defined by the Unicode Consortium. This standard provides an order for all characters in Unicode sorting complete and unambiguous

    And that complicates matters, since (for example) the underscore character (officially called "bass line"), which sorts upwards and so before all alphanumeric value Unicode of U005F, which lies between the uppercase and lowercase Latin letters: 'Z' is U005A and 'a' corresponds to U0061.

    The reason I ask is because I would like to find a character that sorts after all Latin characters.  Many sort to before, including < space >, stress / < low line > and (my favorite for folders) < pointing right angle double quote > (i.e. "'").

    If it was really sort by Unicode, then it would be simple to use the selector of characters to insert a Unicode character value, such as U25B9, which is "▹.  "But we sort after space <>, < low line >, and" ' ", but before all Latin characters.

    I found an abstract character who works here for this, but I am helpless about the why.  U1400 is the Unicode section called "Unified Canadian Aboriginal syllable", and U1433, the "Canadian syllable Po", is a character who appears in the Finder as a very big plus of symbol: "ᐳ." (More than the symbol is ' > ' for comparison.)

    Yes WHY?

    Why think the Finder that's good (partial) order:

    U0020 "" (space)

    U005F '_' (bass line) < underscore >

    "U00BB '" ' (pointing to the right angle double quote)

    U005C "------" (Reverse Solidus) < backslash >

    U25B7 "▷" (white triangle pointing to the right)

    U0041 "A".

    U007A 'z '.

    U1433 "ᐳ" (Canadian syllable Po)

    Note: I see that note technical I linked to refers to the "Unicode snack Algorithm", which could indicate the answer somewhere in its depths.  If this is the case, then I guess this raises the question of why the Unicode coalition choose such an unexpected algorithm.

    Your "Note" has the answer.  Sorting of Unicode is not determined by the values of code as such point, it is determined by the algorithm.  This can be quite complex, but I think an easy way of having things to sort after Latin is to use a Greek character as µ (m option).

    http://Unicode.org/charts/collation/

  • How to change the sort order of the items sought for the last element of this research first. I DON'T want to say the order search engines, but the existing research by arrow down

    I want to be able to change the sort order of the items, I already looked in the search box. I want to be able to hit the arrow key down and see my previous searches in order of last search showing the first. For the moment, I don't know how it is sorting and it is very annoying to have to re - enter a query that I typed 5 minutes earlier, but because I typed in another 10 since it's lost somewhere in the list. Is it possible, I Googled, but did not find the topic anywhere. Just to clarify, I DON'T mean of the order of the search engines (which is what appears in google), I mean that the text typed into which has been registered in the drop-down list.

    Thank you

    'Form filling' uses a "frecency" algorithm, frequency + recency, similar to the list of AutoComplete address bar.

    I found an extension that seems relevant, but critics are old, so I'm not sure it's still working: Searchbar Autocomplete Order.

    But... is the AutoComplete does not? I expect that typing a few characters of the previous query would be to filter the list so that you can easily select? Or is the problem that the list does not remember quite who looking for?

  • How can I change the sort order of the emails?

    iPhone SE 64 GB iOS 9.3.1

    When I opened my mailbox (Mail-> all inboxes) mail is currently sorted from most recent email on top, then retreating.
    How can I correct the sort order so that the oldest email is on top then go ahead?

    You have not, not in the stock email app.  Perhaps a 3rd party app offers this, but not the stock iOS app.

  • Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug? Thank you

    Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug?

    When the same text is seen in another browser, it is displayed correctly as "two."

    The same question is displayed on another computer.

    Thank you.

    Sounds that you use a font that supports ligatures (Palatino?).

  • IOS 9.3 there bugs for the iphone 6?

    Hi guys I have an iPhone 6 currently running in iOS 9.2.1 asked if it is wise to update the iOS to 9.3. Are they bugs in the new iPhone OS 6? Should I update the OS or not?

    just do the update via iTunes by keeping your connected phone. so far no bugs recorded

  • When I updated my iPhone 6 more iOS 9.3 my camera will not be to the point and seems blurred by far. I already reset my iPhone and my mother worked... Anything other ideas, might be a bug in the iOS update?

    When I updated my iPhone 6 more iOS 9.3 my camera will not be to the point and seems blurred by far. I already reset my iPhone and my mother worked... Anything other ideas, might be a bug in the iOS update?

    I would say "try and do a restore as new iPhone" like everyone else but I'm having a similar problem and nothing works! I've restored all the possible ways and nothing. I got my screen replaced and I still have the same home button but my phone updated with error 53 (makes the phone unusable) but the camera did work before the update. and Apple has released iOS 9.1.2 (13D 20) to correct the error 53 (mainly for other reasons) but when I go to use the camera, it is only black! If someone could help 'discovered' and I would be great!

Maybe you are looking for

  • drivers not installing Ralink not - please URGENT

    This is my second post on this, please someone help? I now get an error message on the desktop. HP Pavilion e15 with a stereo interface pseudo problem downloaded tunnel so do not install drivers. Machine still under warranty I URGEMMENT NEED of a RES

  • RAM upgrade and Satellite A200 - 19K graphic card memory:

    Hi all The Satellite A200 - 19K came with 1024 MB memory system. It's only 2 cards of memory of 512 MB or just 1 memory card 1024Mo in the system of the laptop? I would like to add another a 1024 MB of RAM, is that the slot more be available? The sec

  • MSNUpdate.exe

    Whenever I have connect or log on my MSN explorer (today), I get a pop up asking permission to install msnupdate.exe.  The Publisher is listed as not being identified.  Considering that I was faced with a virus, a few days ago, I am very wary of the

  • My Dell coming 8 Pro Tablet cannot connect to the internet

    After that the last update, my Tablet Windows couldn't access the internet. I get this message when I run a troubleshooting tool: "The Dell Wireless 1538.802.11 a / ln g adapter knows pilot - or hardware-related problems." My tablet is our guarantee.

  • What causes computer crash

    My computer is about 3 years old. running Windows 7.     OK worked until about 3 weeks ago.  Now it crashes several times a day.  I get a screen that says I have a problem, but flashes if fast, that I can't read.  Then I have to restart and it asks i