List files and directories of current directory separated by commas

Write a command that lists all the files and directories of the current directory, separated by commas (,).

Directory names should end with a slash (/)
Files and directories starting with a dot (.) should be listed
The listing should be alpha ordered, except for the directories . and .. which should be listed at the very beginning
Only digits and letters are used to sort; Digits should come first
You can assume that all the files we will test with will have at least one letter or one digit
The listing should end with a new line

@Asbel , welcome.
The forum is a collaboration, please show what you have attempted and the team can come back with suggestions. We are not here to write solutions without your active participation.

For starters, suggest you read the ls documentation man ls and look at the various output options.