fixed sort, updated externals