Consider the normal table of contents:

Coming from something like this:
\documentclass{memoir}
\begin{document}
\tableofcontents*
\newpage
\chapter{A chapter}
\section{A section}
\section{A longer named section}
\newpage
\chapter{Another chapter}
\section{A section}
\section{Yet another section}
\section{And a really long section named which probably is so very long that
some people might think is too long}
\end{document}
Can I have something that looks more like what is below here?
Contents
1 A chapter 3
1.1 A section 3
1.2 A longer named 3
section
2 Another chapter 5
2.1 A section 5
2.2 Yet another section 5
2.3 And a really long 5
section named which
probably is so very
long that some
people might think
it is too long
So, instead of filling out with dots the names are flushed right, next to the page numbers.
