top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

JayData orderBy function produce strange result

+2 votes
371 views

I have table in websql to get data from that i am using JayData and write this

_context.FoodLog.include("FoodItem").orderByDescending("it.TotalCalories").toArray().then(function(foodLogs)
{
    $scope.$apply(function ()
    {
        try
        {
            for(var i=0; i<foodLogs.length; i++)
            {
                console.log(foodLogs[i].TotalCalories);                             
            }
        }
        catch(error)
        {
            console.log("Inner Try  "+error);
        }
    })
});

in console the result is

738.00
31.56           // why this 31.50 comes before 127.91 and 101.81
127.91
101.81
10.00
10.00

but it shows that result-set in not in specific order

posted Dec 19, 2013 by Blu Angel

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
Can you provide some-more detail i.e. field details etc etc...
Just checking the web for some similar issue and found this https://github.com/jaydata/jaydata/issues/81

there was a issue with take prior to 1.3 but you does not seems to have take so something with the code only.

Similar Questions
0 votes

with git I noticed when I removed a remote branch with git push origin --delete in my clone when I used git branch -a I don't the deleted branch but my colleagues still see it.

I tried with two clones in my PC, with the first one delete branch and the other still sees it despite git pull .

I use git version 2.9.4

+2 votes

Ever since a recent update, when I close the lid of my thinkpad, it does not go to sleep. When I unlock the screen, I see a desktop notification saying something like this:

 Power Manager
 GDBus.Error:org.freedesktop.DBus.error.accessdenied:  SELinux policy denies access.

Strangely though, I can not find any SELinux alerts in the troubleshooter. Looking at the updated packages, I find this:
selinux-policy-3.13.1-128.13.fc22.noarch. What is going on? How can I debug this to file a bug report?

+4 votes

Ive come into a strange problem using tomcat with one of our WAR file.The application works as a charm, but when using the manager to redeploy it, roughly one time out of two, the heap size explodes:

Please note that the _used_ heap does not - according to JVisualVM anyway. After that, everything hangs, and the tomcat stops responding, with CPU usage ranging from 60 to 100%. Also, this issue has been reproduced on several Tomcat version ranging from 7.0.32 to 8.0-RC5, and on several machines (all Windows though).

Could anyone direct me to the clues to look for?

+2 votes

I am using python and pyserial to talk to an embedded pic processor in a piece of scientific equipment. I sometimes find the when I construct the bytes object to write it adds an extra f to the first byte.

For example if I have bx03x66x02x01xaaxbb it evaluates to bx03fx02x01xaaxbb, which doesnt even seem valid. Can anyone shine some light this?

...