I have the following code which works fine with Firefox and Chrome, but with Microsoft Edge (default settings) the list items are not sorted — they are left unordered. I'm using MS Edge 20.10240.16384.0.
Has anyone seen this problem and found a solution? (id here is the container of the ul)
$( id + ' li' ).sort(function ( a, b ) {
return parseFloat( $( a ).attr( "id" ).replace( 'page', '' ) )
> parseFloat( $( b ).attr( "id" ).replace( 'page', '' ) );
}).appendTo( id + ' ul' );
JS fiddle example: https://jsfiddle.net/c1d8caa5/2/