naive lexical sort