Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP PHP Arrays and Control Structures PHP Arrays Sorting Arrays

Michael Apps
Michael Apps
4,907 Points

At frame 5:45 of the video why is the last value in the array "Black Cherry"

I'm sure I'm missing something very silly here but the last thing she does in the video is sort the values in alphabetical order. Why then is Black Cherry at the bottom? Surely it should be at the top?

2 Answers

Kieran Barker
Kieran Barker
15,028 Points

I think it might just be that her console wasn’t pulled up high enough to show the most recent output.

Michael Apps
Michael Apps
4,907 Points

ah good, as long as I'm not going mad :) Thanks