Problem with sorting

Hi all,
I am trying to sort an array using Bubble sort, But it can't seem to work.
can you please look at my code below and tell me where I am going wrong
bubbleSort class
public class bubbleSort {
    int size;
    int[] array;
    public bubbleSort(int size, int[] array) {
        this.size = size;
        this.array = array;
    public void sort(int[] arr, int arraySize) {
        boolean swapped;
        arr = this.array;
        arraySize = this.size;
        int temp;
        do {
            swapped = false;
            for (int i = 0; i < arraySize - 1; i++) {
                if (arr[i] > arr[i + 1]) {
                    temp = arr;
arr[i] = arr[i + 1];
arr[i + 1] = temp;
swapped = true;
} while (swapped != true);
public void swappFunction(int num1, int num2) {
int temp;
temp = num1;
num1 = num2;
num2 = temp;
public void printArray(int[] arr, int arraySize) {
for (int i = 0; i < arraySize; i++) {
System.out.println(arr[i] + " ");
Main class
{code:java}
public class Main {
    public static void main(String[] args) {
        int unsortedArray[] = {12,9,4,99,120,1,3,10};
        bubbleSort bbl_sort = new bubbleSort( unsortedArray.length,unsortedArray);
        System.out.println("Unsorted Array");
        bbl_sort.printArray(unsortedArray, unsortedArray.length);
        bbl_sort.sort(unsortedArray, unsortedArray.length);
        System.out.println("Sorted Array");
        bbl_sort.printArray(unsortedArray, unsortedArray.length);

Try it this way. I commented out the parts that you were trying to make a copy of an array therefore passing by value instead of by reference. You need the side effects reflected on the array otherwise you may need to return an array if you decide to pass by value. I also added a j variable because at the end of each iteration, the last value in the array is sorted, so no need to redo it each time. In addition, you can get the length of the array by using array.length instead of passing the size of the array.
public class bubbleSort {
    int size;
    int[] array;
    public bubbleSort(int size, int[] array) {
        this.size = size;
        this.array = array;
    public void sort(int[] arr, int arraySize) {
        boolean swapped;
        int j = 0;
       // arr = this.array;
        //arraySize = this.size;
        int temp;
        do {
            swapped = false;
            j++;
            for (int i = 0; i < arraySize - j; i++) {
                if (arr[i] > arr[i + 1]) {
                    temp = arr;
arr[i] = arr[i + 1];
arr[i + 1] = temp;
swapped = true;
} while (swapped);
public void swappFunction(int num1, int num2) {
int temp;
temp = num1;
num1 = num2;
num2 = temp;
public void printArray(int[] arr, int arraySize) {
for (int i = 0; i < arraySize; i++) {
System.out.println(arr[i] + " ");
public static void main(String[] args) {
int unsortedArray[] = {12,9,4,99,120,1,3,10};
bubbleSort bbl_sort = new bubbleSort( unsortedArray.length,unsortedArray);
System.out.println("Unsorted Array");
bbl_sort.printArray(unsortedArray, unsortedArray.length);
bbl_sort.sort(unsortedArray, unsortedArray.length);
System.out.println("Sorted Array");
bbl_sort.printArray(unsortedArray, unsortedArray.length);

Similar Messages

  • Problem with sorting involving user defined types and reports

    Hello!
    I have a problem with sorting involving Reports and user defined objet types.
    I have created the following object types
    CREATE TYPE type_balance_compte AS OBJECT
    NUM_CPT_SEQ NUMBER(8)
    ,NUM_CPT VARCHAR2(35)
    CREATE TYPE TB_type_balance_compte IS TABLE OF type_balance_compte
    At the reports query I use:
    SELECT ...
    FROM table(cast(test_pkg.balance_comptes(:P_num_soc) as TB_type_balance_compte)) c
    The procedure balance_comptes will retrieve data from various tables into the type.
    The report is ordered by a certain string field that usually contains characters and numbers.
    I need to have numbers always before characters, meaning the data should come in this order in the report for example:
    0
    1
    A
    B
    So, before the report query, I have placed a call to DBMS_SESSION.SET_NLS( 'nls_sort', 'binary' ) to guarantee NLS_SORT in case it is originally set to FRENCH.
    The problem here is that even after this call, I have the report ordered like this
    A
    B
    0
    1
    And not the numbers before as it should be.
    To try and find out where the problem was, I have created a table to use instead of the object type described above. In this case, it worked correctly. So all I know by now is that is has something to do with the type or cast, but what exactly? Does anybody now how to solve this without using a table?
    Many thanks
    Ariadne

    I have placed a call to DBMS_SESSION.SET_NLS( 'nls_sort', 'binary' ) why not order directly then:
    SQL> select *
          from table (sys.dbms_debug_vc2coll ('A', 1, '5', 'C', 'a'))
    order by nlssort (column_value, 'NLS_SORT = binary')
    COLUMN_VALUE                                                                   
    1                                                                              
    5                                                                              
    A                                                                              
    C                                                                              
    a                                                                              
    5 rows selected.?

  • A Problem With Sorting via Applescript

    Hello everyone. I have always lurked these forums and learnt many things along the way, but this is my first question, and I hope that someone can help me out. I apologise for the huge post.
    I have created a spreadsheet in Numbers that I plan to use for a soccer tournament. There are 8 Groups of 4 teams in the competition, so I have set each Group up on its own sheet in order to record the results of the games. Group 1 is on Sheet 1, Group 2 is on Sheet 2 etc. These results are then fed into a second table on the each page in order to create a competition ladder for each group. So far so good, works beautifully. See image:
    My next step is sorting these tables so that they form a proper "results table" with the best team on top. My wish is to sort the results table in this order:
    Points
    Diff
    F
    Although not very experienced with Applescript, I have written a script to sort all of the 8 sheets so that I don't have to do them one at a time. Unfortunately I find that every second sheet does not sort correctly, even though I am using the same instructions for each seet in my script.
    See here, sheet two:
    Sheet 3 sorts correctly but not sheet 4, sheet 5 is good but sheet 6 bad etc...
    This is my script:
    tell application "Numbers"
              tell table "Ladder1" of sheet "Group1" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder1" of sheet "Group1" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder1" of sheet "Group1" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder2" of sheet "Group2" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder2" of sheet "Group2" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder2" of sheet "Group2" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder3" of sheet "Group3" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder3" of sheet "Group3" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder3" of sheet "Group3" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder4" of sheet "Group4" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder4" of sheet "Group4" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder4" of sheet "Group4" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder5" of sheet "Group5" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder5" of sheet "Group5" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder5" of sheet "Group5" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder6" of sheet "Group6" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder6" of sheet "Group6" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder6" of sheet "Group6" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder7" of sheet "Group7" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder7" of sheet "Group7" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder7" of sheet "Group7" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder8" of sheet "Group8" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder8" of sheet "Group8" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder8" of sheet "Group8" of document "Manu"
      sort by column "g" direction descending
              end tell
    end tell
    Can anybody see any obvious errors with the script? Any info would be greatly appreciated. Thanks!

    First I would look at some items to simplify the script:
    I did NOT run this.
    tell application "Numbers"
              set LadderNumber to 1
              repeat 8 times
           set theLadder to "Ladder" & LadderNumber
           set theGroup to "Group" & LadderNumber
           tell table theLadder of sheet theGroup of document "Manu"
                sort by column "k" direction descending
                sort by column "i" direction descending
                sort by column "g" direction descending
                             end tell
                             set LadderNumber to (LadderNumber + 1)
              end repeat
    end tell
    I don't see a problem with the script.  I suggest adding a dummy table to each sheet and confirming you can set a value in the dummy table from the script (maybe after manually setting the value to some default value).  you can also add print dialogs at each step to see what's happening... like:
    set aValue to <what ever>
    display dialog "The value is: " & aValue
    just some thoughts

  • Prime Infrastructure 2.1 problem with sorting devices in device groups

    Hi,
    I have a problem with prime infrastructure, namely prime is not doing appropriate sorting of devices in default device groups.
    Example: device type > routers > Cisco 2800 series integrated services routers - under shown results there are Cisco 2911 Integrated Service router, Cisco 2901 etc.
    Any solution? 
    Tnx

    Hi all:
    I have tried using Designing Monitoring Template to set the Health Check Polling time from default 15 minutes to 5 minutes and also tried also 1 minute.
    The result is 5 minutes is working but 1 minute is not working.
    May I know any one can help on this?
    Many thanks!
    Best regards,
    tangsuan

  • Still having problems with sorting playlists

    I asked these questions a couple weeks ago with no response.
    1. I am trying to create a playlist using the latest version of ITunes that is similar to the Today's Hit Music playlist I set up earlier this summer. The 90s music playlist that came with ITunes and this playlist work fine. However, any new playlists created since the upgrade to ITunes 11 do not. In the above scenario where I set up a playlist that only has one rule and that rule is year is greater than whatever, ITunes refuses to sort the playlist by year then by artist, instead sorting the entire playlist by artist. My Today's Hit Music playlist, on the other hand, sorts with the year on top, so every song that I have allowed in the playlist is sorted by year. For example, B.O.B, Pitbull, Taio Cruz and Usher have songs from 2010 in the playlist. Their songs are all sorted alphabetically by artist, then by album as they should be. Then Pitbull, New Boys, and Hot Chelle Ray all have songs from 2011. Under the old system, these would be right below the songs from 2010, but in the new system they are mixed in with the 2010 songs, so Pitbull could have 2 songs back to back that did not come out in the same year. How can I fix this?
    2. I have a playlist set up for songs that are not in any other playlist. I had to recreate this playlist the last time I reset my plays because my phone wouldn't remove the songs that were added to the playlist since its creation from the list when it was supposed to. Now however, I am having the same problem with it as I was having with the last playlist. With the old system before ITunes 11, if What I Want by Daudtrey was the first song in that playlist, it would always be the first song, creating a sound that sounded like it was on shuffle, which I thought was cool. Now, it just sorts alphabetically by artist regardless of when it was played. How can I tell ITunes to not rearrange this playlist and just add all new songs to the end?

    I don't know how to do this without using a mouse point.
    This may help, http://www.computerhope.com/issues/ch000542.htm
    As for question #2, you call tell how iTunes is sorting songs by the up or down arrow next to a header name.
    Even the original order that the songs were entered or date added or last played can be sorted.
    Much easier with a mouse or touch pad.

  • Problem with 'sort and filter' feature of embed codes in Excel Online Web App

    So my question has to do with the Excel Online feature where you can share a spreadsheet and embed it in a website with the option of allowing users to sort and filter the data. (The option is under the "Interaction" heading.)
    One of the options if you look closely is "Let people sort and filter" which is not checked off. In the embed code you can see "AllowInteractivity=False". The problem is that when I check "Let people sort and filter"
    the embed code changes completely - going from:
    <iframe width="700" height="900" frameborder="0" scrolling="no" src="https://onedrive.live.com/embed?cid=dontworryaboutitEDFD383&resid=6BAA9620AEDFD383%21107&authkey=AFj3X8xq2U3IfDE&em=2&wdAllowInteractivity=False&Item='Sheet1'!A1%3AI32"></iframe>
    to:
    <iframe width="700" height="900" frameborder="0" scrolling="no" src="https://onedrive.live.com/embed?cid=dontworryaboutitEDFD383&resid=6BAA9620AEDFD383%21107&authkey=AFj3X8xq2U3IfDE&em=2&Item='Sheet1'!A1%3AI32"></iframe>
    If I manually change 'false' to 'true' that doesn't do the trick so I'm not sure what to try next.
    Any thoughts?

    Hi,
    We support Office for Windows in the current forum, since this question is about Office Online, I suggest you post the question in Office Online forum:
    http://community.office365.com/en-us/f/default.aspx
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Problems with sort, search and write objects o an ArrayList

    Hi
    Lets say that i have two subclasses (the program is not finished so in the end it can be up to 34 classes) of an abstract superclass. I also got one class which basicly is a register in which i've created an ArrayList of the type <abstractClass>. This means that i store the two subclasses in the arrayList. no problems so far i think (at least eclipse doesn't mind).
    1. now, i want to be able to sort the arrayList aswell as search thorugh it. I've tried Collections.sort(arrayList) but it doesn't work. So i have no idea how to solve that.
    2.The search-method i made doesn't work as good as i hoped for either. I ask the user to first decide what to search for (choose subclass) and then input the same properties as the subclass we search for. I create a new object of the subclass with these inputs and try arrayList.contains(subClassObject)
    it runs but it returns +"false"+ even if i create an object with the exact same properties.
    3. If i want to write this arrayList to a txtFile so i can import it another time. Which is the best method? first i just thought i'd convert the arrayList to string and then print every single object to a textfile as strings. that worked but i have no good idea how to import that into the same arrayList later. Then i found ObjectOutputStream and import using inputStream.nextObject(). But that doesn't work :(
    Any ideas?
    Thank you!
    Anton

    lavalampan wrote:
    Hi
    Lets say that i have two subclasses (the program is not finished so in the end it can be up to 34 classes) of an abstract superclass. I also got one class which basicly is a register in which i've created an ArrayList of the type <abstractClass>. This means that i store the two subclasses in the arrayList. no problems so far i think (at least eclipse doesn't mind).
    1. now, i want to be able to sort the arrayList aswell as search thorugh it. I've tried Collections.sort(arrayList) but it doesn't work. So i have no idea how to solve that. Create a custom comparator.
    >
    2.The search-method i made doesn't work as good as i hoped for either. I ask the user to first decide what to search for (choose subclass) and then input the same properties as the subclass we search for. I create a new object of the subclass with these inputs and try arrayList.contains(subClassObject)
    it runs but it returns +"false"+ even if i create an object with the exact same properties.Implement hashCode and equals.
    >
    3. If i want to write this arrayList to a txtFile so i can import it another time. Which is the best method? first i just thought i'd convert the arrayList to string and then print every single object to a textfile as strings. that worked but i have no good idea how to import that into the same arrayList later. Then i found ObjectOutputStream and import using inputStream.nextObject(). But that doesn't work :(Depends on what your requirement is, but yes, Serialization might work for you. Your classes should in that case implement Serializable.
    Kaj

  • Problems with sorting in cross tab.

    Hi,
    Can anybody help me? I use Oracle Discoverer Desktop 10.1.2
    The problem is:
    a have a cross tab in which at the left axis I have the items sorted by alternative sort. Among them there are two items with similar names, like "detail 1" and "detail 1", but with different recid and ordernumber.
    if I put only the 'name' of an item at the left axis - I see only one item with the name "detail 1", against both of them.
    if I put two colums at the left axis 'ordernumber' and 'name' - I see both, but there are additional lines with the same 'content' like:
    1     ;     100
    detail 1;     100
    2     ;     200
    detail 1;     200
    how can I avoid this and is there any way to see both item without ordernumber?
    Kate.

    Hi, Ott
    I use ordernumber only for creating alternative sort, not for publishing in the crosstab.
    Ordernumber only "prevent" me to publish the info I need correctly, if I put ordernumber in the table the duplicated rows appears.
    You see, the problem is:
    I need only the names of the details in the left axis, BUT the identical names of the details (with the different ordernumber) are displayed as one row, not as different. it is not correctly.
    what should I do to solve the problem?

  • Who is Who iView: Problem with sorting

    Hi out there,
    I have the following problem: I would like to have the
    Search result generated by the Who is Who iView sorted
    by two properties, that is first by ume:lastname and
    second by ume:firstname.
    The search result will be sorted if I add ume:lastname in
    the "Search Result Sort Property" parameter within the iView.
    The question is: How to provide the second sort property?
    Any hint is highly appreciated
    Thanks in advance
    Sabine

    Hello,
    I don't know if it will help but check the who is who manual.
    http://help.sap.com ->Documentation - SAP NetWeaver ->
    pick your version and look for
    "Configuration of the Who#s Who iView"
    please notice that the documentation for EP6 SP2 can be find under
    Knowledge Management - Collaboration - Administration Guide -     
    Making Services Available - iViews with Collaboration Services -> 
    "Configuration of the Who#s Who iView"                            
    Hope this manual give's you some insight. Sort parameters should be explained. I would suggest writing the two separeted by ,
    ume:lastname, ume:firstname
    Best Regards,
    Defour Frederik

  • Paul McCartney Pre-Order Problem with Sorting

    I pre-ordered the new McCartney album last week (at which point it downloaded the "Ever Present Past" single) and when it became available today I downloaded the rest fine, except "Ever Present Past" (which should be song number 2) had a different album title ("Ever Present Past Single" or something like that) and thus didn't sort correctly with the rest of the album... so I edited the track to match the same album name and correct track number (being very careful to make sure that all of the fields in the Get Info window match the other tracks, and that there are no invisible spaces throwing it off), but it refuses to sort with the rest of the album... even tried to rebuild the iTunes Library file but that didn't work either... just curious if anyone else has a similar problem and/or a possible solution. Thanks.

    This is ridiculous that this issue isn't being
    > addressed. Same problem here, and I guarantee that
    > I'm not alone.
    Check out the emails I got from Apple on this:
    "I understand that the single " Memory Almost Full" from the album you pre-ordered, will did not download with the album and now you're unable to listen to the album without it stopping to get to the single. Please note that re-downloading the album, will not resolve this issue. You are correct when you mentioned that this issue will happen because iTunes sees it as two different albums because it was downloaded separately. Don't worry. To resolve this issue, I recommend creating a playlist for the album itself. That way, you can arrange the contents of the album so that they will play without interruption.
    This article will show you how to do this:
    Organizing your music and video using playlists
    http://docs.info.apple.com/article.html?path=iTunesWin/7.0/en/517win.html
    I hope you continue to enjoy using the iTunes Store."
    Well, that's great...so not only do I have to isolate the album from the rest of my iTunes collection, it also does nothing to fix the issue on my iPod. So I responded to them as such, and got this response:
    "You did mention very valid points when stating your disappointment with the way pre-ordered albums are downloaded and Apple recognizes that no one is better qualified to provide feedback about iTunes than the people who use it.
    I encourage you to use the iTunes Feedback page to submit your comments:
    http://www.apple.com/feedback/itunesapp.html
    Your efforts to share your feedback are very much appreciated.
    I hope you continue to enjoy using the iTunes Store.
    Is this ridicuous or what? Unbelievable. If I bought a CD in a store and the tracks were incorrectly burned on the CD, the store would take it back or at least try to exchange it for a new copy that wasnt defective. This TECHNICAL ISSUE needs to be resolved.
    iMac 17" 1.83 GHz Intel, iBook G4 12.1"   Mac OS X (10.4.6)  
    iMac 17" 1.83 GHz Intel, iBook G4 12.1"   Mac OS X (10.4.9)  

  • Problem with Sort.findItem() in flex4.5

    I am not getting the expected results using Sort.findItem().
    Please find below the example, i am always getting the index  value as "0".
    Though, the currect answer is 2
    am i missing something???. Thanks in advance...
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                         xmlns:s="library://ns.adobe.com/flex/spark"
                                                         xmlns:mx="library://ns.adobe.com/flex/mx">
              <fx:Declarations>
                        <s:ArrayCollection id="collection">
                                  <fx:Object name="Suraj" age="28"/>
                                  <fx:Object name="Ramu" age="35"/>
                                  <fx:Object name="Ganesh" age="54"/>
                        </s:ArrayCollection>
              </fx:Declarations>
              <fx:Script>
                        <![CDATA[
                                  import mx.collections.Sort;
                                  import mx.controls.Alert;
                                  private function checkIndex(event:MouseEvent):void
                                            var sort:Sort = new Sort();
                                            var index:int = sort.findItem(collection.source, {name:"Ganesh"}, Sort.FIRST_INDEX_MODE);
                                            Alert.show("The value is " + index as String, "Result");
                        ]]>
              </fx:Script>
              <s:Button id="myBtn" label="Find" click="checkIndex(event)"/>
    </s:WindowedApplication>

    Thank you for the replies. What was happening is that the other audio files were being onverted by PPPro. This one was not. I moved the file to the desktop and once again placed it into the project. This time the yellow conversion line on the bottom right corner went to work and it works fine. It was some type of glitch with that one file. Thanks again. Roman

  • Problem with sorting dates

    I am taking date from the user in mm/dd/yyyy in the text field.
    Since I am maintaing a document management system,
    I need to sort docs with respect to dates. Latest date first.
    Can anyone help me how do I do this.
    I have to get docs from database(mysql) and I cant use order by ....
    Please help

    How you enter and what gets stored and what gets displayed are controlled by your formating and can be 3 different things.
    If you use an sqldate as a type for the mysql then you have raw date data ( some big integer type). This you push through a format to display.
    Calendar work = Calendar.getInstance();
            java.sql.Date sqldate = new java.sql.Date(work.getTimeInMillis());String displayDate= sqldate.toString();
    gives you todays date in the format yyyy-mm-dd
    to use something else see:
    http://java.sun.com/docs/books/tutorial/i18n/format/simpleDateFormat.html
    In the mySQL dates are stored in a sortable format - how they show is NOT how they are stored.
    I have dates in mySQL also, I have to display the records in ascending or descending order depending on the module.
    Dates are a bitch to work with. You get it working on your local host and then you up load it to your server and it is running with a different date format and everything crashes.
    Just wait till they ask for time, it is even worse.
    so basically
    1- input your date info
    2 - tranfrom it into sql date format
    3 store it inmysql as a date
    4 search it and generate a datset in order of xdate desc
    5 read through the data set and format your date for display
    Lena

  • Problem with sorting a Column in Advance table .

    Dear Friends ,
    I have a OAF page developed with advanced table region , the table has several columns, now i would
    like to sort a column named "Trial number" which is of the type Number .
    To accomplish this i have given Sort Allowed : True (Property Inspector) . but when i click on the sort button
    i am unable to sort the record . Could you please some one give me some suggestion and help me out .
    Regards,
    Keerthi.k

    No there is no Transient attribute involved , could you please tell me what might cause this error .
    Basically this page is for inserting a record.
    Thanks ,
    Keerthi
    Edited by: user1140193 on Oct 21, 2011 7:15 AM
    Edited by: user1140193 on Oct 21, 2011 7:16 AM

  • Problem with 'sort' command in iTerm, X11

    Dear All,
    I find it there some problem in using 'sort' command to sort the data in file.
    For eg:
    the command 'sort -g -k 1 t.txt' gives the following result. (actually I am doing generic sort based on column 1)
    1.46e-01 N
    1.46e-13 H
    1.53e-11 H
    1.54e-03 H
    The correct answer should be:
    1.46e-13 H
    1.53e-11 H
    1.54e-03 H
    1.46e-01 N
    I think this 'sort' problem exist in every where, even when we use the 'ls -trl' command.
    Any comments?

    Hi
    thank you woj for responding. The extra zero byte was my mistake while writting it in my question,it's not in my command.
    this is my whole apdu commands and responses which I get from the card:
    Select: 00 A4 04 00 07 A0 00 00 00 03 00 00
    status: 61 1B normall processing
    Initial Update: 80 50 00 00 08 11 22 33 44 55 66 77 88
    status: 61 1C normall processing
    Get Response: 00 C0 00 00 1C
    status: 90 00 normall processing
    response: 00 00 42 63 0C C0 04 5C 78 46 01 01 44 4B 3D DC 6C
    3B 91 89 3F C1 8D 47 C1 8D 47 E8 84 16 A9
    ExAuthenticate: 84 82 00 00 10 27 AC BE 09 F2 FC F6 2B DD
    47 59 4A 9F 7D 97 88
    status: 90 00 normall processing
    Install: 84 E6 02 00 13 06 11 11 11 11 11 02 08 A0 00 00 00 03
    00 00 00 00 00 00
    status: 69 85 error
    Is there any command that I miss?
    I'll appreciate any help

  • Major problems with sorting/importing in iphoto.

    Here is the problem I am having. When I try to import some recent pictures I have taken, I get all kinds of errors. First of all if import them through iphoto all of the thumbnails show up but when you double click on them i get a grey box with an exclamation mark. Now I've read TONS of post already suggesting I should rebuild my library buy holding down option and alt. I'm done this with no success. Secondly, I've tried importing the pictures with image capture. When I do this and then import them into iphoto, it places the pics in several different bins(they were all taken at the same time) and it even messes up other pictures in the library from years ago and puts them in different bins. I've got my library backed up so each time it messes up and navigate to a backed up version but it all messes up again when I try to import these new pictures. Any ideas on what this could be or how to fix this?
    Thanks so much for your help.

    Jason:
    Have you tried Terence's suggestion to create a new library and import the Originals folder from the old one? That should give you a clean, working library. If it starts acting screwy then it's not the library that's at fault but maybe the application or your account. Give it a try and report back.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Problem with sorting and filtering of table

    Hello,
    using VC 7.1 SP5 I have created [this|http://img232.imageshack.us/img232/2460/screenshotsr0.png] model. The webservice returns a collection of structured elements. The table is meant to display values of top-level attributes. This works as expected.
    However, the table cannot be sorted or filtered. What is the reason for this? How can I fix that?
    I tried to store the result of the web service in a data bridge. That did not succeed.
    Best regards
    Alexander

    Hi Natty,
    How are you trying to sort it?
    I want to be able to sort the table by clicking on the table column headers. Furthermore, I want be able to filter the table by using the built-in table feature. However, table sorting and filtering seem to be disabled for this particular table, whereas other tables in my model provide the desired features.
    Best regards
    Alexander

Maybe you are looking for