Added sort command, etc.

Added command to sort ids by field.  Added pointer checks.  Removed
newline from description init.