templateutils: Add Sort method
templateutils: Add Sort method

This commit adds the sort function.  Sort sorts a slice or an array of structs.
It takes three parameters.  The first is the slice; the second is the name of
the structure field by which to sort; the third provides the direction of the sort.

Signed-off-by: Mark Ryan <f16215f7acd0bd7fdc465539215bd574c785b062@intel.com>

kaccardi/ciao,matthewrsj/ciao,ciao-project/ciao,rbradford/ciao,01org/ciao,kaccardi/ciao,markdryan/ciao,01org/ciao,matthewrsj/ciao,tpepper/ciao,mcastelino/ciao,matthewrsj/ciao,tpepper/ciao,tpepper/ciao,ciao-project/ciao,mcastelino/ciao,mcastelino/ciao,rbradford/ciao,markdryan/ciao