this is not possible because the sorting function doesn’t use ajax requests to receive all portfolio entries. Your solution would improve the site loading time but would slow down the sorting process itself because ajax requests would be required before each sorting process (otherwise you wouldn’t have enough data to sort all items properly).