Refactored how portfolio item order is queried from wp json