tag: js:Intl.Collator

Narrow your search:

  • js:Intl.Collator
Log in Sign up
3 Matching Annotations
  1. Sep 2023
  2. javascript.plainenglish.io javascript.plainenglish.io
    JS i18n: 5 essential tips for localeCompare() & Intl.Collator()
    1
    1. kael 09 Sep 2023
      in Public
      js js:Intl.Collator
    Visit annotations in context

    Tags

    • js
    • js:Intl.Collator

    Annotators

    • kael

    URL

    javascript.plainenglish.io/js-i18n-5-essential-tips-for-localecompare-intl-collator-27b8570196cd
  3. developer.mozilla.org developer.mozilla.org
    Intl.Collator - JavaScript | MDN
    1
    1. kael 09 Sep 2023
      in Public
      js js:Intl.Collator wikipedia:en=Collation
    Visit annotations in context

    Tags

    • js
    • js:Intl.Collator
    • wikipedia:en=Collation

    Annotators

    • kael

    URL

    developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator
  4. stackoverflow.com stackoverflow.com
    400x Sorting Speedup by Switching a.localeCompare(b) to (a<b?-1:(a>b?1:0))
    1
    1. kael 09 Sep 2023
      in Public

      js const collator = new Intl.Collator('en', { numeric: true, sensitivity: 'base' }); arrayOfObjects.sort((a, b) => { return collator.compare(a.name, b.name); });

      js perf js:Intl.Collator
    Visit annotations in context

    Tags

    • js
    • js:Intl.Collator
    • perf

    Annotators

    • kael

    URL

    stackoverflow.com/questions/14677060/400x-sorting-speedup-by-switching-a-localecompareb-to-ab-1ab10
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy