Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!news2.glorb.com!tr22g12.aset.psu.edu!news.mathforum.org!not-for-mail
From: parham <parham_iut@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: sorting cell
Date: Sun, 28 Jun 2009 02:01:11 EDT
Organization: The Math Forum
Lines: 7
Message-ID: <9053934.40651.1246168902401.JavaMail.jakarta@nitrogen.mathforum.org>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1246168902 916 144.118.30.135 (28 Jun 2009 06:01:42 GMT)
X-Complaints-To: news@news.mathforum.org
NNTP-Posting-Date: Sun, 28 Jun 2009 06:01:42 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:551156


hi
I have a problem.I have a cell wich is in below, and as you see its size is 1*3
 
c={{83 85 84 86 86 86 94 83 83 }{19 20 19 12 16 15 13 18 15} {'b' 'c' 'a' 't' 'f' 'r' 'd' 'r' 'x'}}
fierst column is entrance year and second is average.How can I sort this cell according to entrance year and if the entrance year are equal then it sorts according to average.for example
c={{83 83 83 84 85 86 86 86 94}{15 18 19 19 20 12 15 16 15}{{'b' 'c' 'a' 't' 'f' 'r' 'd' 'r' 'x'}}
thanks in advance