Automatic salience using topologic sort on rules