Sort Array Javascript By Object Value Drawing Buildings In 3