Code Monkey home page Code Monkey logo

naturalsort.extension's Introduction

Dynamically generated stats for my user

naturalsort.extension's People

Contributors

dependabot[bot] avatar kvpt avatar tompazourek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

naturalsort.extension's Issues

Wrong sorting

The following list of files ordered by name in Windows explorer:

1.txt
1a.txt
2.txt
11.txt
a.txt
a1.txt
a2.txt
a11.txt
aa.txt
b.txt
ba.txt
bb.txt

Are sorted differently with NaturalSort.Extension:

1.txt
1a.txt
2.txt
11.txt
a1.txt
a2.txt
a11.txt
a.txt <- Wrong position
aa.txt
b.txt
ba.txt
bb.txt

Tested with NaturalSort.Extension v1.0.2 via NuGet.

.Net 7

When do plan to release for .Net 7 resp. .Net 8? Thank you.

Strong name

Can you please consider strong naming your assembly so that it may be used by projects that use a strong name?

Add support for non-ASCII digits

: c is >= '0' and <= '9'
? TokenDigits
: TokenOther;

There are many more Unicode codepoints that can be used as digits, as can be seen here: https://www.compart.com/en/unicode/category/Nd Each of these has a numeric value assigned, for example https://www.compart.com/en/unicode/U+0A68 (which has the value 2).

I suggest using char.IsDigit instead to handle this correctly.

see https://github.com/christophwille/poc-oh/blob/main/src/NaturalSortTests/Program.cs for a comparison with StrCmpLogicalW:

Input: A, A10, A11, Z, A੨, A੨੨
NaturalSort.Extensions: A, A੨, A੨੨, A10, A11, Z
StrCmpLogicalW: A, A੨, A10, A11, A੨੨, Z

The sort order of StrCmpLogicalW makes perfect sense if you replace ੨ with 2.

Sorting strings starting with a period

Sorting strings that start with a period does not work as expected.
where should i fix it?

Actual behavior

C:\scripts\NaturalSort.Extension\format.ps1
C:\scripts\NaturalSort.Extension\LICENSE
C:\scripts\NaturalSort.Extension\NaturalSort.Extension.sln
C:\scripts\NaturalSort.Extension\NaturalSort.Extension.sln.DotSettings
C:\scripts\NaturalSort.Extension\NaturalSort.Extension.snk
C:\scripts\NaturalSort.Extension\README.md
C:\scripts\NaturalSort.Extension\.appveyor.yml
C:\scripts\NaturalSort.Extension\.editorconfig
C:\scripts\NaturalSort.Extension\.gitattributes
C:\scripts\NaturalSort.Extension\.gitignore

Expected behavior

C:\scripts\NaturalSort.Extension\.appveyor.yml
C:\scripts\NaturalSort.Extension\.editorconfig
C:\scripts\NaturalSort.Extension\.gitattributes
C:\scripts\NaturalSort.Extension\.gitignore
C:\scripts\NaturalSort.Extension\format.ps1
C:\scripts\NaturalSort.Extension\LICENSE
C:\scripts\NaturalSort.Extension\NaturalSort.Extension.sln
C:\scripts\NaturalSort.Extension\NaturalSort.Extension.sln.DotSettings
C:\scripts\NaturalSort.Extension\NaturalSort.Extension.snk
C:\scripts\NaturalSort.Extension\README.md

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.