Wow sorry for so many edits I just need to swap the rest of my array of structs along with the day value now delete this post or post insight on how
int x, y;
for(x = 0; x < l; x++)
{
for(y = 0; y < x; y++)
{
if(print[x].day > print[y].day)
{
int temp = print[x].day;
print[x].day = print[y].day;
print[x].day = temp;
}
}