TS sort array containing points, letters and numbers

Discussão em 'Angular' iniciado por Enrique Martinez gomez, Dezembro 16, 2024.

  1. I am having problems in Angular to sort an array of strings in which the strings contain letters, dots and numbers.

    I have tried several ways with the sort method and none of them manage to sort it correctly.

    The array is something like this:

    myArray = ['gl.aaa.app-xx-111111', 'gl.abb.app-xx-333333', 'gl.acc.app-xx-222222', 'bbb.abc.app-xx-222233' ,]

    Continue reading...

Compartilhe esta Página