         score = -Infinity
       else
         score = -((subMagnitude sub) + i * 100)
-      type: plainPrettyPrint def.type#score + ' ' +
+      type: score + ' ' + plainPrettyPrint def.type#score + ' ' +
       arity: def.arity
       docs: def.docs
       rawType: def.type


findMatchingDefinitionsOnType = (type, definitionLists) ->
  ctx = new Context
  [typed, untyped] = unzip (for definitions, i in definitionLists
    isValid = (name, def) ->
      def.type? and not def.type.TempType


findMatchingDefinitions = (moduleName, reference) ->
  {declared: {savedScopes}} = lookupCompiledModule moduleName
  {ctx} = contextWithDependencies reverseModuleDependencies moduleName
  {scope, type} = reference
  return [] unless scope?
  scoped =
