I have :
  $years = '2015,2017,2016';
  $short = '21,1,7';
  $long  = '777-21/2015,777-1/2017,777-7/2016';
I need to rearrange them by years, descending. So that I get :
  $years == '2017,2016,2015';
  $short == '1,7,21';
  $long  == '777-1/2017,777-7/2016,777-21/2015';
explode(',',$years), rearranging $years and using the keys as a pattern may be a good solution but I'm not sure how to do it.
 
     
    