Support » Plugin: Code Snippets » [Improvement] Sort tags alphabetically in the filter dropdown

  • Resolved ddenev

    (@ddenev)


    Hi,

    Thank you for developing this extremely useful plugin!

    Could you please consider updating the filter dropdown in the snippets list page to have the tags ordered alphabetically?

    I use the tags feature quite often and have many tags so it becomes more and more difficult to locate a tag in the filter.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    This is a good idea, and shouldn’t be difficult to implement.

    I should have this updated in the next plugin release.

    Hi Shea,

    Just wanted to ask you if you plan a release soon. I’m really in need of this functionality and manually patching all my sites is tedious.

    Thank you again!

    Just to help – the following line in class-list-table.php:
    return array_values( array_unique( $tags, SORT_REGULAR ) );
    has to be replaced with:

    $tags = array_values( array_unique( $tags ) );
    sort($tags);
    return $tags;
    Plugin Author Shea Bunge

    (@bungeshea)

    My apologies – I should have pushed the update a while ago.

    I’ve just released version 2.10.2 which includes this improvement. Sorry for the delay!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Improvement] Sort tags alphabetically in the filter dropdown’ is closed to new replies.