Comments (3)
Hello,
Apologies for the inconvenience.
As mentioned in the README, Sortable currently supports numbers, strings, ISO dates.
I am rethinking the support for multiple data types, but in the meantime, if you are willing to contribute a fix, feel free to do so!
from obsidian-sortable.
As mentioned in the README, Sortable currently supports numbers, strings, ISO dates.
Yes, I got that. But what I don't understand is that even sorting them as simple strings should work. You can verify it using a tool like https://texttools.org/sort-text.
Actually, isn't it because you're enabling numeric
here:
obsidian-sortable/src/sortable.ts
Line 112 in cbdfea4
?
from obsidian-sortable.
Yes, it's due to the collator used for the natural sorting which interprets 02
> 1C
.
Errors like this will continue to pop up, but I don't want to bodge things anymore, rather rethink the method from the ground up. I like the Wikipedia approach of specifying a data-sort-type
attribute or just letting the user write a custom comparator function for the column they want to sort (#12).
In the meantime, feel free to patch the source to suit your needs.
from obsidian-sortable.
Related Issues (20)
- Test with multiple large tables
- Remove table state on pane close (or similar) HOT 1
- Sorting by Date-and-Time columns does not change the order - only reverts to original order HOT 10
- Implement parsers for various data types + auto-detect data type
- Submitting Sortable to Community Plugins HOT 4
- Exclude dataview calendar HOT 5
- Issues with installation HOT 3
- Feature request: Live Preview support HOT 11
- FR: Use `Intl.Collator` to sort "naturally" instead of showing 1, 10, 2, 3, etc. HOT 5
- Feature Request: Row Filter HOT 2
- Can't sort according to dates HOT 3
- Live Preview support for native (non-dataview) tables HOT 2
- Sortable in alphabet not date HOT 1
- Unable to sort list of IP Addresses HOT 1
- Sorting by date is flawed HOT 1
- Does not work on a secondary window. HOT 3
- Add comprehensive testing suite
- Sorting is reset to the unsorted state when dataview content is updated HOT 2
- Feature Request: have Sortable ignore tables inside of special class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-sortable.