>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  TAG_SORT

TAG_SORT

TAG_SORT

Name


      TAG_SORT

Purpose


      Sort structure tags based on a specified tag.

Category


Calling Sequence


      s2 = tag_sort(s)

Inputs


      s = Input structure to sort. in

Keyword Parameters


Keywords


        KEY=ktag Tag name to sort on (def=null string).
          If ktag is a null string the structure will be copied
          as is, but names may be changed with ALIAS.
        ALIAS=new Optional list of new names to use for structure.
          Give one for each original tag in same order.
          If given will be used in returned structure.
          Also use the alias to sort the original structure
          and in the INCLUDE and EXCLUDE lists.
        /REVERSE Reverse the sort.
        INCLUDE=list List of tags to sort (include ktag). Def=all.
        EXCLUDE=listx List of tags not to sort.

Outputs


      s2 = returned sorted structure. out

Common Blocks


Notes


      Note: Arrays with the same number of elements as ktag
        will be sorted. Any other items are ignored.
        Intended for 1-d arrays but not restricted to them.

Modification History


      R. Sterner, 2008 Nov 20
      R. Sterner, 2008 Nov 21 --- Made default ktag='' (copy).
      R. Sterner, 2008 Nov 24 --- Added ERROR=err and INDEX=is.
      R. Sterner, 2010 May 07 --- Converted arrays from () to [].
  Copyright (C) 2008, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us