sorting data

This is a discussion on sorting data within the labview forums in Programming Languages category; I want to sort the data from the table with accending order like name               &n bsp;       &nbs p;                 &n bsp; marksJohn      &nbsp ;        & nbsp;       &nb sp;       &nbsp ;        & nbsp;   50mary       &n bsp;       &nbs p;                 &n bsp;       &nbs p;   80Cathrine      &nbs p;                 &n bsp;       &nbs p;      60Thomas&nbs p;                 &n bsp;       &nbs p;              67Suzy       &n bsp;       &nbs p;                 &n bsp;       &nbs p;   75                 &n bsp;       &nbs p;                 &n bsp;       &nbs p; to  name      &nbs p;                 &n bsp;       &nbs p;       &nbsp ; marks       &nb sp;       &nbsp ;        & nbsp;       &nb sp;       &nbsp ;       Cathrine                &n bsp;       &nbs p;               60John &n bsp;       &nbs p;                 &n bsp;       &nbs p;       &nbsp ; 50mary       &n bsp;       &nbs p;                 &n bsp;       &nbs p;   80Suzy       &n bsp;       &nbs p;                 &n bsp;       &nbs p;   75Thomas                &n bsp;       &nbs p;                67                 &n bsp;       &nbs p;       &nbsp...

Go Back   Application Development Forum > Programming Languages > labview

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-14-2008, 02:40 AM
treasure
Guest
 
Default sorting data

I want to sort the data from the table with accending order like name               &n bsp;       &nbs p;                 &n bsp; marksJohn      &nbsp ;        & nbsp;       &nb sp;       &nbsp ;        & nbsp;   50mary       &n bsp;       &nbs p;                 &n bsp;       &nbs p;   80Cathrine      &nbs p;                 &n bsp;       &nbs p;      60Thomas&nbs p;                 &n bsp;       &nbs p;              67Suzy       &n bsp;       &nbs p;                 &n bsp;       &nbs p;   75                 &n bsp;       &nbs p;                 &n bsp;       &nbs p; to  name      &nbs p;                 &n bsp;       &nbs p;       &nbsp ; marks       &nb sp;       &nbsp ;        & nbsp;       &nb sp;       &nbsp ;       Cathrine                &n bsp;       &nbs p;               60John &n bsp;       &nbs p;                 &n bsp;       &nbs p;       &nbsp ; 50mary       &n bsp;       &nbs p;                 &n bsp;       &nbs p;   80Suzy       &n bsp;       &nbs p;                 &n bsp;       &nbs p;   75Thomas                &n bsp;       &nbs p;                67                 &n bsp;       &nbs p;       &nbsp
Reply With Quote
  #2  
Old 08-14-2008, 03:10 AM
MikeS81
Guest
 
Default Re: sorting data

Hi treasure,are this arrays of different type. Build an array of cluster of your data and use the sort function from the array palette. See also <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=239665&amp;que ry.id=13287#M239665" target="_blank">this</a>&nbsp;thread, it shows what i mean. &nbsp;Mike
Reply With Quote
  #3  
Old 08-14-2008, 08:40 AM
JoeLabView
Guest
 
Default Re: sorting data

See attached example.&nbsp; I understood that you are using a Table.&nbsp; Using an array&nbsp;(2D array) should also work the same way.&nbsp;R &nbsp;


SortTable.vi:
http://forums.ni.com/ni/attachments/...1/SortTable.vi
Reply With Quote
  #4  
Old 08-14-2008, 08:40 AM
treasure
Guest
 
Default Re: sorting data

That's what I want to do. Very nice and thank you for the quick reply.Thank you Joe and Mike.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 11:05 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.