Gets data from remote site and sorts json array correct