# include "lightcurve.h"

void sort_stars (radec, stars, Nstars)
int  **radec;
Star  *stars;
int    Nstars;
{
  
  int i;
  double *RAs;

  ALLOCATE (radec[0], int, Nstars);
  ALLOCATE (RAs, double, Nstars);
  for (i = 0; i < Nstars; i++) {
    radec[0][i] = i;
    RAs[i] = stars[i].RA;
  }

  sort_seq (radec[0], RAs, Nstars);
  free (RAs);

}


