vradarserver / vrs

A .NET web server that can plot the positions of aircraft on a map
http://www.virtualradarserver.co.uk/
Other
274 stars 50 forks source link

fix value extraction in MLAT sort handler #2

Closed mhh closed 7 years ago

mhh commented 7 years ago

Hi,

In VRS 2.4.0, attempting to sort by MLAT in the website arranges the rows incorrectly. This is because of a bug in the sort handler's getNumberCallback -- when a MLAT value is available, the function is checking truthiness of the isMlat object, rather than its val property. This PR fixes that.

vradarserver commented 7 years ago

Thanks for that - I had a Trello card open to look into whether MLAT sorting was working properly, looks like you've answered that question for me :)