ultimate-comparisons / ultimate-comparison-framework

The base of all ultimate-comparisons. Follow the README and create your own ultimate comparison.
http://ultimate-comparisons.github.io/ultimate-comparison-framework/
MIT License
16 stars 7 forks source link

Add number columns with range search #84

Closed hueneburg closed 7 years ago

hueneburg commented 7 years ago

Added number columns/criteria that don't filter according to values but to ranges. Filtering allows multiple ranges/values separated by commas. An example would look like this: 100,200-250 Both min and max are inclusive. Ranges max to min (eg 200-100) are handled as well. NaN ranges are ignored. It is also possible to add multiple numbers in a column and it tests if one is in range. whitespaces are completely ignored, so that 2 000 is equal to 2000.

original display: image

simple filter: image

range filter: image

mixed filter: image

filter with NaN: image

solves #56