wiki:SortingResources
Last modified 9 years ago Last modified on 01/08/09 02:08:08

Sorting resources

In general we don't filter resources out based on any user properties, but rather sort the results.

Translations of a resource are all shown.

Calculating points for resources

Pieces
  • 1 point for each time piece used in a resource
  • 1 point if piece has a non-default title
  • 1 point if piece has tags
  • 1 point if piece has a description
Learning resources
  • 1 point for each member that has this resource in his collections
  • 10 points for each tip for use that has this resource
Activities
  • 1 point for each member that has this resource in his collections
  • 10 points for each tip for use that has this resource
Tools
  • 1 point for each member that has this resource in his collections
  • 10 points for each tip for use that has this resource
Members
  • 1 point for each piece added
  • 10 points for each learning resource, activity, and tool added
  • 10 points for each tip for use written
  • 1 point for each blog entry
  • 1 point for every member who has contacted this person
Groups
  • 1 point for each member
  • 1 point for each blog entry
  • 1 point for each assigned learning resource

If action is older than month, points are divided by every full month+1. (So, two month old edit is worth 1/3 point.)

Sorting browse and search results

Content
  1. Sort by type
    • Materials
    • Pieces
    • References
    • Print resources
  2. Sort by language
    • first by selected user interface language
    • then by user profile's language selections
    • then English
    • then others
  3. Sort by state
    • first published
    • then drafts
  4. Sort by score
  5. Sort by modification date
    • newest before

Methods and tools

  1. Sort by language
    • first by selected user interface language
    • then by user profile's language selections
    • then English
    • then others
  2. Sort by cover image
    • first with cover image
    • then without cover image
  3. Sort by score
  4. Sort by modification date
    • newest before

People

  1. Sort by photo
    • first users who have photo
    • then users without photo
  2. Sort by score
  3. Sort by last name

Groups

  1. Sort by cover image
    • first groups with cover image
    • then without cover image
  2. Sort by score
  3. Sort by name

When using advanced search then only ordering by score.

Calculating sizes of resources in tag clouds

  1. For each tag:
    • calculate the sum of the points of all resources that have the tag
    • take a log of the sum
  2. Assign the largest font size to the resource with the largest logsum

Selecting featured resources

Select randomly 3 from:

  • published resources within the section
  • that have a cover image
  • and that are in the top-N list in points
    • where N is 10% of the total amount of resources in the section (ie. with 100 resources, select from top-10, with 5000, select from top 500)

AddComment?