New sort algo

New sort algo "type":
* elements will be sorted by 'type index' then by name
* 'type index' is currently defined by the textual representation of the kind
  * dependent of the values associated in the `kinds` dictionary