Sort the list of states by their population
Texas, California, Massachusetts, New York
California, Texas, New York, Massachusetts
Complete the following task based on the instruction and optional input provided.### Instruction:
Sort the list of states by their population

### Input:
Texas, California, Massachusetts, New York

### Output:
California, Texas, New York, Massachusetts