Comments (4)
That comes in from the Sheetsee.js dependency; https://github.com/jlord/sheetsee-tables/blob/master/index.js#L20 looks to be your point of interest. It's doing a ASCIIbetical sort.
from hack-spots.
Hi,
I tried twice the example https://github.com/jlord/sheetsee-tables/blob/master/index.js#L20, but I see no reaction at all.
The code, coming from there feature only ShowInfo function, which is the same in your project.
I entered sheetsee.js and found possibly relevant stuff inside:
1506 line: var sortable = []
for (var category in count) {
sortable.push([category, count[category]])
}
sortable.sort(function(a, b) {return b[1] - a[1]})
return sortable
// returns array of arrays, in order
}
7905 line:
queue.sort(function (a, b) {
return a.distanceTo(center) - b.distanceTo(center);
});
16138 line:
module.exports.sortThings = sortThings
function sortThings(opts, sorter, sorted, tableDiv) {
if (opts.tableDiv != tableDiv) return
opts.data.sort(function(a,b){
if (a[sorter]<b[sorter]) return -1
if (a[sorter]>b[sorter]) return 1
return 0
})
if (sorted === "descending") opts.data.reverse()
makeTable(opts)
var header
$(tableDiv + " .tHeader").each(function(i, el){
var contents = resolveDataTitle($(el).text())
if (contents === sorter) header = el
})
$(header).attr("data-sorted", sorted)
}
Any advice cordially appreciated! Thank you
from hack-spots.
@Krukarius hack-spots isn't my project; I just used to use it for a site (i've since rewritten it to not use sheetsee.js since I didn't need most of its functionality).
The sheetsee.js in this repository is a compiled, minified version of the one that I linked to above. If you want to modify it, you should fork sheetsee-tables, make your changes, compile+minify a version that has the sorting you want, then add it to your fork of hack-spots.
from hack-spots.
OK, thanks. So in this event maybe someone else can advise?
from hack-spots.
Related Issues (20)
- Map doesn't always reset correctly HOT 1
- Make London happen! HOT 1
- Something broke? HOT 2
- New google spreadsheets HOT 5
- How do I move the NumberofSpots line to another part of the page? HOT 2
- Make clicks work on mobile HOT 1
- Table isn't sortable, throws Uncaught ReferenceError: gData is not defined HOT 6
- TODO HOT 2
- Address oddness for 'state'less addresses
- Hex color doesn't work for the last item in spreedsheet
- #filter
- Pagination
- View only spreadsheet?
- mapbox account. HOT 2
- Mapbox api seems to be /v3 while they are on /v4 now
- Ordnance Survey map in the hack-spots
- Hack-spots
- On Mac OS X Safari, clicking a marker shows "undefined" on the first click, the title on the second click. HOT 6
- TypeError: geoJSON[0] is undefined HOT 4
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 hack-spots.