Got the sorting to work everytime we create or edit the jokes array