Home > asr > dictSort.m

dictSort

PURPOSE ^

dictSort: Sort a dict based on its words

SYNOPSIS ^

function sortedDict=dictSort(dict)

DESCRIPTION ^

 dictSort: Sort a dict based on its words
    Usage: sortedDict=dictSort(dict)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function sortedDict=dictSort(dict)
0002 % dictSort: Sort a dict based on its words
0003 %    Usage: sortedDict=dictSort(dict)
0004 
0005 %    Roger Jang, 20051114
0006 
0007 [sortedWord, index]=sort({dict.word});
0008 sortedDict=dict(index);

Generated on Tue 01-Jun-2010 09:50:19 by m2html © 2003