fixed linechart zero-injection, closes #2102

@spenceralger this closes #2102 
shelby and I worked on the update, we needed to distinguish between numbers and dates to fix sorting of values. 
related to issue #1903 and pr #1968
We should probably add comments to the top of this return statement regarding why if its date, we sort by date and if its not, we sort by index.