Moodle

Random order of the tags cloud page (/tag/search.php)

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9
  • Component/s: General
  • Labels:
    None
  • Environment:
    moodle.org
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Continuing playing with tags.... I've seen that this page:

http://moodle.org/tag/search.php

shows the tags cloud in a different order each time it's refreshed.

Just wondering if should be showed alphabetically or it it's random on purpose... :-/

Martin decides...ciao

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Adding Luiz here too...

Show
Eloy Lafuente (stronk7) added a comment - Adding Luiz here too...
Hide
Luiz Cruz added a comment -

The order is random on purpose... The search page shows some 50 random tags. As the number of tags grow, each time the page is refreshed, tags will be totally different.

Show
Luiz Cruz added a comment - The order is random on purpose... The search page shows some 50 random tags. As the number of tags grow, each time the page is refreshed, tags will be totally different.
Hide
Martin Dougiamas added a comment -

I also found it a bit disconcerting with the totally random method when going back a forth a bit.

I think showing the 50 most popular tags would be better, and showing them in alphabetical order.

eg http://flickr.com/photos/tags/

That way they won't change every time but will still evolve.

Show
Martin Dougiamas added a comment - I also found it a bit disconcerting with the totally random method when going back a forth a bit. I think showing the 50 most popular tags would be better, and showing them in alphabetical order. eg http://flickr.com/photos/tags/ That way they won't change every time but will still evolve.
Hide
Martin Dougiamas added a comment -

Luiz, could you please fix this ASAP? Thanks!

Show
Martin Dougiamas added a comment - Luiz, could you please fix this ASAP? Thanks!
Hide
Martin Dougiamas added a comment -

The algorithm should be:

Select the 50 most popular tags, then sort them by rawname, then display.

While you're there, could you remove the need for get_all_tags() because that's not very scaleable (imagine sites with many thousands of tags).

Show
Martin Dougiamas added a comment - The algorithm should be: Select the 50 most popular tags, then sort them by rawname, then display. While you're there, could you remove the need for get_all_tags() because that's not very scaleable (imagine sites with many thousands of tags).
Hide
Luiz Cruz added a comment -

Resolved... I think

Show
Luiz Cruz added a comment - Resolved... I think

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: