<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Sort Matrix elements in ascending or descending order</title>
    <link>http://www.mapleprimes.com/questions/141385-Sort-Matrix-Elements-In-Ascending-Or</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 20:58:30 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 20:58:30 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Sort Matrix elements in ascending or descending order</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Sort Matrix elements in ascending or descending order</title>
      <link>http://www.mapleprimes.com/questions/141385-Sort-Matrix-Elements-In-Ascending-Or</link>
    </image>
    <item>
      <title>sort columns</title>
      <link>http://www.mapleprimes.com/questions/141385-Sort-Matrix-Elements-In-Ascending-Or?ref=Feed:MaplePrimes:Sort Matrix elements in ascending or descending order:Comments#answer141407</link>
      <itunes:summary>&lt;p&gt;To sort the columns, without creating a permutation Matrix, you could do&lt;/p&gt;
&lt;pre&gt;(m,n) := upperbound(M):&lt;br&gt;for j to n do&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; M[..,j] := sort(M[..,j]);&lt;br&gt;end do:&lt;/pre&gt;
&lt;p&gt;Here's another &lt;a href="http://www.mapleprimes.com/posts/35796-Sorting-With-A-Permutation-List"&gt;approach&lt;/a&gt; for generating permutation lists/vectors.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;To sort the columns, without creating a permutation Matrix, you could do&lt;/p&gt;
&lt;pre&gt;(m,n) := upperbound(M):&lt;br&gt;for j to n do&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; M[..,j] := sort(M[..,j]);&lt;br&gt;end do:&lt;/pre&gt;
&lt;p&gt;Here's another &lt;a href="http://www.mapleprimes.com/posts/35796-Sorting-With-A-Permutation-List"&gt;approach&lt;/a&gt; for generating permutation lists/vectors.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>141407</guid>
      <pubDate>Thu, 13 Dec 2012 08:45:10 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
    <item>
      <title>matix Sort with permutation vector of the corresponding column</title>
      <link>http://www.mapleprimes.com/questions/141385-Sort-Matrix-Elements-In-Ascending-Or?ref=Feed:MaplePrimes:Sort Matrix elements in ascending or descending order:Comments#answer141453</link>
      <itunes:summary>&lt;p&gt;Thanks to&lt;a href="http://www.mapleprimes.com/posts/43507-Sorting-With-Indice"&gt; @Alec Mihailovs&lt;/a&gt; , in his&amp;nbsp;reply from Forum, 2005&lt;br&gt;&lt;a href="http://www.mapleprimes.com/posts/43507-Sorting-With-Indice"&gt;Sorting with Indices&lt;br&gt;&lt;br&gt;&lt;/a&gt;How to implement this idea for a matrix or universalize to: List, Array, Vector, Matrix&lt;br&gt;&lt;br&gt;My proposal for a matrix, I hope you guide me for improvement&lt;/p&gt;
&lt;p&gt;# proc (M::Matrix) &lt;br&gt;local m, n, i, MI, MV, TT; &lt;br&gt;m, n := upperbound(M); &lt;br&gt;MI := Matrix(m, n); &lt;br&gt;MV := Matrix(m, n); &lt;br&gt;for i to n do &lt;br&gt;TT := ListTools:-Transpose(sort(ListTools:-Enumerate(convert(M[() .. (), i], list)), (a, b) -&amp;gt; a[2] &amp;lt;= b[2])); &lt;br&gt;MI[() .. (), i] := &amp;lt;(TT[1]&amp;gt;; &lt;br&gt;MV[() .. (), i] := &amp;lt;TT[2]&amp;gt;;&lt;br&gt;end do; &lt;br&gt;return MI, MV &lt;br&gt;end proc;&lt;/p&gt;
&lt;p&gt;Gracias&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thanks to&lt;a href="http://www.mapleprimes.com/posts/43507-Sorting-With-Indice"&gt; @Alec Mihailovs&lt;/a&gt; , in his&amp;nbsp;reply from Forum, 2005&lt;br&gt;&lt;a href="http://www.mapleprimes.com/posts/43507-Sorting-With-Indice"&gt;Sorting with Indices&lt;br&gt;&lt;br&gt;&lt;/a&gt;How to implement this idea for a matrix or universalize to: List, Array, Vector, Matrix&lt;br&gt;&lt;br&gt;My proposal for a matrix, I hope you guide me for improvement&lt;/p&gt;
&lt;p&gt;# proc (M::Matrix) &lt;br&gt;local m, n, i, MI, MV, TT; &lt;br&gt;m, n := upperbound(M); &lt;br&gt;MI := Matrix(m, n); &lt;br&gt;MV := Matrix(m, n); &lt;br&gt;for i to n do &lt;br&gt;TT := ListTools:-Transpose(sort(ListTools:-Enumerate(convert(M[() .. (), i], list)), (a, b) -&amp;gt; a[2] &amp;lt;= b[2])); &lt;br&gt;MI[() .. (), i] := &amp;lt;(TT[1]&amp;gt;; &lt;br&gt;MV[() .. (), i] := &amp;lt;TT[2]&amp;gt;;&lt;br&gt;end do; &lt;br&gt;return MI, MV &lt;br&gt;end proc;&lt;/p&gt;
&lt;p&gt;Gracias&lt;/p&gt;</description>
      <guid>141453</guid>
      <pubDate>Fri, 14 Dec 2012 01:31:35 Z</pubDate>
      <itunes:author>herclau</itunes:author>
      <author>herclau</author>
    </item>
    <item>
      <title>List, ??, Vector, Matrix</title>
      <link>http://www.mapleprimes.com/questions/141385-Sort-Matrix-Elements-In-Ascending-Or?ref=Feed:MaplePrimes:Sort Matrix elements in ascending or descending order:Comments#comment141473</link>
      <itunes:summary>&lt;p&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;
&lt;form name="worksheet_form"&gt;
&lt;table style="width: 576px;" align="center"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;M := Matrix(6, 3, [2, 3, 3, 5, 7, 8, 12, 5, 9, -3, 4.1, 7, 7, 7, -3, 9, 3, 8]);&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;M;&lt;/span&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -70;" src="/view.aspx?sf=141473/450035/e3bf7f54c3c8c66ebd8406b71104db40.gif" alt="Matrix([[2, 3, 3], [5, 7, 8], [12, 5, 9], [-3, 4.1, 7], [7, 7, -3], [9, 3, 8]])" width="95" height="151"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(1)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=141473/450035/1f8bae8ef8034f2680f7d14b7859e333.gif" alt="``" width="11" height="23"&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=141473/450035/6932b15e8474db8f079f6944a2246f9f.gif" alt="NULL" width="11" height="23"&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=141473/450035/2a0883f2d37a2c1daa5c6334d5b859f1.gif" alt="" width="11" height="23"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(2)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;from Matlab&lt;br&gt;&lt;/span&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;[b,n]=sort(A)&lt;/span&gt;&lt;/p&gt;
&lt;table style="height: 184px; width: 328px;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align="left"&gt;
&lt;table style="border-collapse: collapse; empty-cells: show; margin: 1px; border: black 1px;" cellspacing="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="background-color: #ffffff; border: solid; border-color: black; border-width: 1; padding: 3;" valign="top"&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;b =&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-bottom: 0px; padding-top: 0px; padding-left: 180px; margin: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-bottom: 0px; padding-top: 0px; margin: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;-3.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;3.0000 &amp;nbsp;&amp;nbsp;-3.0000&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;3.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;3.0000&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;4.1000 &amp;nbsp;&amp;nbsp;&amp;nbsp;7.0000&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;5.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;8.0000&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;9.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;7.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;8.0000&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;12.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;7.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;9.0000&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=141473/450035/e93b79ee11b6828cbf2c23e1f209df7d.gif" alt="NULL" width="11" height="23"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="background-color: #ffffff; border: solid; border-color: black; border-width: 1; padding: 3;" valign="top"&gt;
&lt;p style="padding-bottom: 0px; padding-top: 0px; margin: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;n =&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-bottom: 0px; padding-top: 0px; padding-left: 150px; margin: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6&lt;/span&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;3 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=141473/450035/ae2deb09d67b32f831d9ff6ace1e83bd.gif" alt="NULL" width="11" height="23"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="font-weight: bold;" align="left"&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;mSort := proc (mM::{Matrix, Vector, list}) &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;local m, n, i, M, MI, MV, TT; &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;M := `if`(type(mM, Matrix), mM, convert(mM, Matrix)); &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;m, n := upperbound(M); &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;MI := Matrix(m, n); &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;MV := Matrix(m, n); &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;for i to n do &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;TT := ListTools:-Transpose(sort(ListTools:-Enumerate(convert(M[() .. (), i], list)),(a, b) -&amp;gt; a[2] &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;MI[() .. (), i] := ; &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;MV[() .. (), i] := ;&lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;end do; &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;return MV, MI; &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;end proc:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;M; mSort(M);&lt;/span&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -70;" src="/view.aspx?sf=141473/450035/16313ad25a9e97b76c229e56a3df1535.gif" alt="Matrix(6, 3, {(1, 1) = -3, (1, 2) = 3, (1, 3) = -3, (2, 1) = 2, (2, 2) = 3, (2, 3) = 3, (3, 1) = 5, (3, 2) = 4.1, (3, 3) = 7, (4, 1) = 7, (4, 2) = 5, (4, 3) = 8, (5, 1) = 9, (5, 2) = 7, (5, 3) = 8, (6, 1) = 12, (6, 2) = 7, (6, 3) = 9}), Matrix(6, 3, {(1, 1) = 4, (1, 2) = 1, (1, 3) = 5, (2, 1) = 1, (2, 2) = 6, (2, 3) = 1, (3, 1) = 2, (3, 2) = 4, (3, 3) = 4, (4, 1) = 5, (4, 2) = 3, (4, 3) = 2, (5, 1) = 6, (5, 2) = 2, (5, 3) = 6, (6, 1) = 3, (6, 2) = 5, (6, 3) = 3})" width="160" height="151"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(3)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;Ds := Matrix(4, 4, [-434.8482330, &amp;nbsp;0, &amp;nbsp;0, &amp;nbsp;0, &amp;nbsp;0, 336.3639763, &amp;nbsp;0, &amp;nbsp;0, &amp;nbsp;0, 0, 4.310248244, &amp;nbsp;0, 0, 0, &amp;nbsp;0, 94.17400829]);&lt;/span&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -46;" src="/view.aspx?sf=141473/450035/b1bb3b9cf0cf80ef10726175336549c0.gif" alt="Matrix([[-434.8482330, 0, 0, 0], [0, 336.3639763, 0, 0], [0, 0, 4.310248244, 0], [0, 0, 0, 94.17400829]])" width="373" height="103"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(4)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;mSort(LinearAlgebra[Diagonal](Ds));&lt;/span&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -46;" src="/view.aspx?sf=141473/450035/d6abfae89fb29aad3fa0f61c02ac3749.gif" alt="Matrix(4, 1, {(1, 1) = -434.8482330, (2, 1) = 4.310248244, (3, 1) = 94.17400829, (4, 1) = 336.3639763}), Matrix(4, 1, {(1, 1) = 1, (2, 1) = 3, (3, 1) = 4, (4, 1) = 2})" width="150" height="103"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(5)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;mSort();&lt;/span&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -70;" src="/view.aspx?sf=141473/450035/397e7e123061ff50caff98b463a4b508.gif" alt="Matrix(6, 1, {(1, 1) = 1, (2, 1) = 3, (3, 1) = 4, (4, 1) = 5, (5, 1) = 7, (6, 1) = 9}), Matrix(6, 1, {(1, 1) = 6, (2, 1) = 1, (3, 1) = 5, (4, 1) = 3, (5, 1) = 2, (6, 1) = 4})" width="69" height="151"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(6)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=141473/450035/738ec37be4e86df3f49c609136ebea42.gif" alt="NULL" width="11" height="23"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;input type="hidden" name="sequence" value="1"&gt; &lt;input type="hidden" name="cmd" value="none"&gt;&lt;/form&gt;
&lt;p&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=141473/450035/SortMatrix1.mw"&gt;Download SortMatrix1.mw&lt;/a&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;
&lt;form name="worksheet_form"&gt;
&lt;table style="width: 576px;" align="center"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;M := Matrix(6, 3, [2, 3, 3, 5, 7, 8, 12, 5, 9, -3, 4.1, 7, 7, 7, -3, 9, 3, 8]);&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;M;&lt;/span&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -70;" src="/view.aspx?sf=141473/450035/e3bf7f54c3c8c66ebd8406b71104db40.gif" alt="Matrix([[2, 3, 3], [5, 7, 8], [12, 5, 9], [-3, 4.1, 7], [7, 7, -3], [9, 3, 8]])" width="95" height="151"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(1)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=141473/450035/1f8bae8ef8034f2680f7d14b7859e333.gif" alt="``" width="11" height="23"&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=141473/450035/6932b15e8474db8f079f6944a2246f9f.gif" alt="NULL" width="11" height="23"&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=141473/450035/2a0883f2d37a2c1daa5c6334d5b859f1.gif" alt="" width="11" height="23"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(2)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;from Matlab&lt;br&gt;&lt;/span&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;[b,n]=sort(A)&lt;/span&gt;&lt;/p&gt;
&lt;table style="height: 184px; width: 328px;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align="left"&gt;
&lt;table style="border-collapse: collapse; empty-cells: show; margin: 1px; border: black 1px;" cellspacing="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="background-color: #ffffff; border: solid; border-color: black; border-width: 1; padding: 3;" valign="top"&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;b =&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-bottom: 0px; padding-top: 0px; padding-left: 180px; margin: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-bottom: 0px; padding-top: 0px; margin: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;-3.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;3.0000 &amp;nbsp;&amp;nbsp;-3.0000&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;3.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;3.0000&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;4.1000 &amp;nbsp;&amp;nbsp;&amp;nbsp;7.0000&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;5.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;8.0000&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;9.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;7.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;8.0000&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;12.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;7.0000 &amp;nbsp;&amp;nbsp;&amp;nbsp;9.0000&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=141473/450035/e93b79ee11b6828cbf2c23e1f209df7d.gif" alt="NULL" width="11" height="23"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="background-color: #ffffff; border: solid; border-color: black; border-width: 1; padding: 3;" valign="top"&gt;
&lt;p style="padding-bottom: 0px; padding-top: 0px; margin: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;n =&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-bottom: 0px; padding-top: 0px; padding-left: 150px; margin: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6&lt;/span&gt;&lt;span style="color: #000000; font-size: 100%; font-family: Times New Roman,serif; font-weight: normal; font-style: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;3 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=141473/450035/ae2deb09d67b32f831d9ff6ace1e83bd.gif" alt="NULL" width="11" height="23"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="font-weight: bold;" align="left"&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;mSort := proc (mM::{Matrix, Vector, list}) &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;local m, n, i, M, MI, MV, TT; &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;M := `if`(type(mM, Matrix), mM, convert(mM, Matrix)); &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;m, n := upperbound(M); &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;MI := Matrix(m, n); &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;MV := Matrix(m, n); &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;for i to n do &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;TT := ListTools:-Transpose(sort(ListTools:-Enumerate(convert(M[() .. (), i], list)),(a, b) -&amp;gt; a[2] &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;MI[() .. (), i] := ; &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;MV[() .. (), i] := ;&lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;end do; &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;return MV, MI; &lt;br&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;end proc:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;M; mSort(M);&lt;/span&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -70;" src="/view.aspx?sf=141473/450035/16313ad25a9e97b76c229e56a3df1535.gif" alt="Matrix(6, 3, {(1, 1) = -3, (1, 2) = 3, (1, 3) = -3, (2, 1) = 2, (2, 2) = 3, (2, 3) = 3, (3, 1) = 5, (3, 2) = 4.1, (3, 3) = 7, (4, 1) = 7, (4, 2) = 5, (4, 3) = 8, (5, 1) = 9, (5, 2) = 7, (5, 3) = 8, (6, 1) = 12, (6, 2) = 7, (6, 3) = 9}), Matrix(6, 3, {(1, 1) = 4, (1, 2) = 1, (1, 3) = 5, (2, 1) = 1, (2, 2) = 6, (2, 3) = 1, (3, 1) = 2, (3, 2) = 4, (3, 3) = 4, (4, 1) = 5, (4, 2) = 3, (4, 3) = 2, (5, 1) = 6, (5, 2) = 2, (5, 3) = 6, (6, 1) = 3, (6, 2) = 5, (6, 3) = 3})" width="160" height="151"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(3)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;Ds := Matrix(4, 4, [-434.8482330, &amp;nbsp;0, &amp;nbsp;0, &amp;nbsp;0, &amp;nbsp;0, 336.3639763, &amp;nbsp;0, &amp;nbsp;0, &amp;nbsp;0, 0, 4.310248244, &amp;nbsp;0, 0, 0, &amp;nbsp;0, 94.17400829]);&lt;/span&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -46;" src="/view.aspx?sf=141473/450035/b1bb3b9cf0cf80ef10726175336549c0.gif" alt="Matrix([[-434.8482330, 0, 0, 0], [0, 336.3639763, 0, 0], [0, 0, 4.310248244, 0], [0, 0, 0, 94.17400829]])" width="373" height="103"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(4)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;mSort(LinearAlgebra[Diagonal](Ds));&lt;/span&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -46;" src="/view.aspx?sf=141473/450035/d6abfae89fb29aad3fa0f61c02ac3749.gif" alt="Matrix(4, 1, {(1, 1) = -434.8482330, (2, 1) = 4.310248244, (3, 1) = 94.17400829, (4, 1) = 336.3639763}), Matrix(4, 1, {(1, 1) = 1, (2, 1) = 3, (3, 1) = 4, (4, 1) = 2})" width="150" height="103"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(5)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;span style="color: #ff0000; font-size: 100%; font-family: Courier New,monospace; font-weight: bold; font-style: normal;"&gt;mSort();&lt;/span&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -70;" src="/view.aspx?sf=141473/450035/397e7e123061ff50caff98b463a4b508.gif" alt="Matrix(6, 1, {(1, 1) = 1, (2, 1) = 3, (3, 1) = 4, (4, 1) = 5, (5, 1) = 7, (6, 1) = 9}), Matrix(6, 1, {(1, 1) = 6, (2, 1) = 1, (3, 1) = 5, (4, 1) = 3, (5, 1) = 2, (6, 1) = 4})" width="69" height="151"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(6)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=141473/450035/738ec37be4e86df3f49c609136ebea42.gif" alt="NULL" width="11" height="23"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;input type="hidden" name="sequence" value="1"&gt; &lt;input type="hidden" name="cmd" value="none"&gt;&lt;/form&gt;
&lt;p&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=141473/450035/SortMatrix1.mw"&gt;Download SortMatrix1.mw&lt;/a&gt;&lt;/p&gt;</description>
      <guid>141473</guid>
      <pubDate>Fri, 14 Dec 2012 20:52:01 Z</pubDate>
      <itunes:author>herclau</itunes:author>
      <author>herclau</author>
    </item>
  </channel>
</rss>