Views sort criteria setup by number of fields I am using views with exposed so visitors can search on items that are published by other users.

Content type that views is showing has 50 fields (+ 3 taxonomy fields with around 200 terms). 
Only 7 fields are mandatory. Rest are there to better describe the item. Rarely someone uses all fields but most are using half.

Reward for using as many fields+terms as possible per content would result in higher position in view sort criteria.

Example: Users A and B have 2 nodes each.

A1 = 7 fields used

A2 = 12 fields used

B1 = 8 fields used

B2 = 10 fields used

Views results: A1, B1, B10, A12

Is there a way to do this with views ?
It should be something like this. (It is not the exact code, but it will help you.)

function findNodesByUser($userID) {
$result = $query
  -&gt;entityCondition('entity_type', 'node')
  -&gt;propertyCondition('status', 1)
  -&gt;propertyCondition('type', $type) //Where $type is the type of node
  -&gt;propertyCondition('uid', $userID)
  -&gt;execute();
}

function createArray() {
    customArray = array();
    $users = entity_load('user');

    foreach ($users as $user) {
        $user_nodes = findNodesByUser($user);
        foreach($user_nodes as $user_node) {
            customArray[$user . $user_node] = count(field_get_items('node', $entity, $field_name));
        }
    }
}