added sorting by importance