# Create the vector
nucleotides <- c("A", "T", "C", "G")
# Sort the vector alphabetically
sorted_nucleotides <- sort(nucleotides)
# View the result
sorted_nucleotides[1] "A" "C" "G" "T"
# Create the vector
nucleotides <- c("A", "T", "C", "G")
# Sort the vector alphabetically
sorted_nucleotides <- sort(nucleotides)
# View the result
sorted_nucleotides[1] "A" "C" "G" "T"