Add function to order the data when its static